From 9825bb64b65167a0e32eaef8edc6dbdf68fb43de Mon Sep 17 00:00:00 2001 From: abhisheks Date: Sat, 4 Nov 2023 22:32:13 +0530 Subject: [PATCH] refactor: move product availability section above add to cart action --- .../catalog/_partials/product-add-to-cart.tpl | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/templates/catalog/_partials/product-add-to-cart.tpl b/templates/catalog/_partials/product-add-to-cart.tpl index f12da72..5cb6b30 100644 --- a/templates/catalog/_partials/product-add-to-cart.tpl +++ b/templates/catalog/_partials/product-add-to-cart.tpl @@ -22,38 +22,9 @@ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} -
+
{if !$configuration.is_catalog} - {block name='product_quantity'} -
-
- -
- - {hook h='displayCustomProductActions'} - -
- -
- - {hook h='displayProductActions' product=$product} -
- {/block} - {block name='product_availability'} {if $product.show_availability && $product.availability_message} @@ -90,6 +61,35 @@ {/block} + {block name='product_quantity'} +
+
+ +
+ + {hook h='displayCustomProductActions'} + +
+ +
+ + {hook h='displayProductActions' product=$product} +
+ {/block} + {block name='product_minimal_quantity'}

{if $product.minimal_quantity > 1}