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}