From 0a732ef6e436db06256f4a0f2360425006779437 Mon Sep 17 00:00:00 2001 From: abhisheks Date: Fri, 3 Nov 2023 17:43:36 +0530 Subject: [PATCH 1/7] refactor: add custom hook to add actions on product page --- config/theme.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/theme.yml b/config/theme.yml index f0bf5bf..246e5f9 100644 --- a/config/theme.yml +++ b/config/theme.yml @@ -56,6 +56,9 @@ global_settings: - name: displayAfterWrapper title: Display after wrapper description: Display after wrapper + - name: displayCustomProductActions + title: Display Actions below Add to Cart + description: Display actions below product's add to cart button modules_to_hook: displayMainMenu: - ps_mainmenu @@ -76,10 +79,6 @@ global_settings: - ps_facetedsearch displaySearch: - ps_searchbar - displayProductAdditionalInfo: - - ps_sharebuttons - displayReassurance: - - blockreassurance displayOrderConfirmation2: - ps_featuredproducts displayCrossSellingShoppingCart: From 03d5f057ec7c6bf25c93de485800a7e3fac57bbe Mon Sep 17 00:00:00 2001 From: abhisheks Date: Fri, 3 Nov 2023 17:43:54 +0530 Subject: [PATCH 2/7] refactor: update product price styles --- templates/catalog/_partials/product-prices.tpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/catalog/_partials/product-prices.tpl b/templates/catalog/_partials/product-prices.tpl index 7b6c0b5..e37ca13 100644 --- a/templates/catalog/_partials/product-prices.tpl +++ b/templates/catalog/_partials/product-prices.tpl @@ -28,7 +28,7 @@ {if $product.has_discount}
{hook h='displayProductPriceBlock' product=$product type="old_price"} - {$product.regular_price} + {$product.regular_price}
{/if} {/block} @@ -44,7 +44,7 @@
- {$product.price} + {$product.price} {if $product.has_discount} {if $product.discount_type === 'percentage'} @@ -92,8 +92,6 @@
{if !$configuration.taxes_enabled} {l s='No tax' d='Shop.Theme.Catalog'} - {elseif $configuration.display_taxes_label} - {$product.labels.tax_long} {/if} {hook h='displayProductPriceBlock' product=$product type="price"} {hook h='displayProductPriceBlock' product=$product type="after_price"} From b5f236857c0d3442d109370f2dde74ca2dbee4ff Mon Sep 17 00:00:00 2001 From: abhisheks Date: Fri, 3 Nov 2023 17:44:55 +0530 Subject: [PATCH 3/7] refactor: update product images preview styles --- .../_partials/product-cover-thumbnails.tpl | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/templates/catalog/_partials/product-cover-thumbnails.tpl b/templates/catalog/_partials/product-cover-thumbnails.tpl index b6553cd..aaf8111 100644 --- a/templates/catalog/_partials/product-cover-thumbnails.tpl +++ b/templates/catalog/_partials/product-cover-thumbnails.tpl @@ -22,25 +22,18 @@ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} -
+
{block name='product_cover'}
- {if $product.cover} - {$product.cover.legend} -
- -
- {else} - - {/if} + {$product.cover.legend}
{/block} {block name='product_images'} -
-