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: diff --git a/templates/catalog/_partials/product-add-to-cart.tpl b/templates/catalog/_partials/product-add-to-cart.tpl index 279e700..a86cef7 100644 --- a/templates/catalog/_partials/product-add-to-cart.tpl +++ b/templates/catalog/_partials/product-add-to-cart.tpl @@ -24,33 +24,29 @@ *}
{if !$configuration.is_catalog} - {l s='Quantity' d='Shop.Theme.Catalog'} {block name='product_quantity'} -
-
- -
- +
+
+ + {hook h='displayCustomProductActions'} + +
+
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'} -
-