Jump to content

Show amount saved instead of percentage


Recommended Posts

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 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=')'}

Any help would be appreciated,


Link to comment
Share on other sites

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...