From 9f1911eecad0c1364eeea30bef36be5dcb17707f Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Tue, 5 Nov 2013 16:41:38 +0100 Subject: [PATCH] // Fixed shopping cart line reduction --- themes/default-bootstrap/shopping-cart-product-line.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/default-bootstrap/shopping-cart-product-line.tpl b/themes/default-bootstrap/shopping-cart-product-line.tpl index f0ee8d757..6024f434d 100644 --- a/themes/default-bootstrap/shopping-cart-product-line.tpl +++ b/themes/default-bootstrap/shopping-cart-product-line.tpl @@ -44,8 +44,8 @@ {/if} {if isset($product.is_discounted) && $product.is_discounted} - {assign var='priceReductonPercent' value= (($product.price_without_specific_price - $product.price)/$product.price_without_specific_price) * 100 * -1} - {$priceReductonPercent|string_format:"%d"}% + {assign var='priceReductonPercent' value=(($product.price_without_specific_price - $product.price_wt)/$product.price_without_specific_price) * 100 * -1} + {$priceReductonPercent|round|string_format:"%d"}% {convertPrice price=$product.price_without_specific_price} {/if}