
Constantly helping people on Prestashop forums grants a lot of little, but important material to write about on our blog. So in Quickfixes I and my teammates will be showing the cases we helped solve from Prestashop forums.
Here’s a first one: the user dreamer79119 wanted to output the percent of the discount in his template. So, we advised him to customize the required tpl template using this code:
1 2 3 4 5 |
{if $product.price_tax_exc < $product.price_without_reduction} <span class="reduction"> -{((1-($product.price_tax_exc / $product.price_without_reduction))*100)|string_format:"%01.0f"}% </span> {/if} |

Partner With Us
Looking for a partner to grow your business? We are the right company to bring your webstore to success.
Talk to Andrey
Thanks! Solved my problem.