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:
Partner With Us
Let's discuss how to grow your business. Get a Free Quote.
Talk to Vlad
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 that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote.
Talk to Vlad
Thanks! Solved my problem.