andusbeckus Posted June 23, 2011 Share Posted June 23, 2011 On my product.tpl page at the moment it shows "you save 20%" but I would like it to show the amount saved like "You save £20.00"Im using version 1.3.7.0 and the code at the moment is: {if $product->reduction_percent != 0 && ($product->reduction_from == $product->reduction_to OR ($smarty.now|date_format:'%Y-%m-%d' <= $product->reduction_to && $smarty.now|date_format:'%Y-%m-%d' >= $product->reduction_from))} {l s='(You Save'} {$product->reduction_percent|floatval}%{l s=')'} {/if} Any help would be appreciated,Thanks Link to comment Share on other sites More sharing options...
andusbeckus Posted June 29, 2011 Author Share Posted June 29, 2011 Once again thousands of people rushing to help..... Link to comment Share on other sites More sharing options...
andusbeckus Posted July 20, 2011 Author Share Posted July 20, 2011 Anyone? Surely this can be done or am I asking the impossible? I love prestashop but the support in these forums is pretty poor to say the least. Link to comment Share on other sites More sharing options...
vivek tripathi Posted July 20, 2011 Share Posted July 20, 2011 just replace following linein product.tpl {l s='(price reduced by'} {$product->specificPrice.reduction*100} %{l s=')'} {l s='(You save'} {convertPrice price=$productPriceWithoutRedution-$productPrice} %{l s=')'} at product.tpl tested in prestashop 1.4+ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now