From 308b8624e7efc70d034b8d6fb64ebe39dd44fdfc Mon Sep 17 00:00:00 2001 From: vChabot Date: Tue, 25 Oct 2011 08:15:43 +0000 Subject: [PATCH] // removing possibility to edit quantity in the command process, step 3 --- themes/prestashop/order-payment.tpl | 34 ++++++++++++++++------------- themes/prestashop/shopping-cart.tpl | 34 ++++++++++++++++------------- 2 files changed, 38 insertions(+), 30 deletions(-) diff --git a/themes/prestashop/order-payment.tpl b/themes/prestashop/order-payment.tpl index bd06c0608..c13f2e341 100644 --- a/themes/prestashop/order-payment.tpl +++ b/themes/prestashop/order-payment.tpl @@ -225,23 +225,27 @@ {/foreach} -
- {l s='Delete'} -
-
- {l s='Add'}
- {if $product.minimal_quantity < ($customization.quantity -$quantityDisplayed) OR $product.minimal_quantity <= 1} - - {l s='Subtract'} - + {if isset($cannotModify) AND $cannotModify == 1} + {if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if} {else} - - {l s='Subtract'} - +
+ {l s='Delete'} +
+
+ {l s='Add'}
+ {if $product.minimal_quantity < ($customization.quantity -$quantityDisplayed) OR $product.minimal_quantity <= 1} + + {l s='Subtract'} + + {else} + + {l s='Subtract'} + + {/if} +
+ + {/if} -
- - diff --git a/themes/prestashop/shopping-cart.tpl b/themes/prestashop/shopping-cart.tpl index 553c602dc..6d4b10df5 100644 --- a/themes/prestashop/shopping-cart.tpl +++ b/themes/prestashop/shopping-cart.tpl @@ -235,23 +235,27 @@ {/foreach} -
- {l s='Delete'} -
-
- {l s='Add'}
- {if $product.minimal_quantity < ($customization.quantity -$quantityDisplayed) OR $product.minimal_quantity <= 1} - - {l s='Subtract'} - + {if isset($cannotModify) AND $cannotModify == 1} + {if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if} {else} - - {l s='Subtract'} - +
+ {l s='Delete'} +
+
+ {l s='Add'}
+ {if $product.minimal_quantity < ($customization.quantity -$quantityDisplayed) OR $product.minimal_quantity <= 1} + + {l s='Subtract'} + + {else} + + {l s='Subtract'} + + {/if} +
+ + {/if} -
- -