hurray Posted January 10, 2018 Share Posted January 10, 2018 Hi, How do you display percentage on product list for products on sale in prestashop 1.5.6.2? Right now I only get the original and the reduced price. Thanks. Link to comment Share on other sites More sharing options...
olkuznw Posted January 11, 2018 Share Posted January 11, 2018 Hi! It looks like 1.5 prestashop does not show it by default. You can check template product-list.tpl for property «specific_prices» of product: isset($product.specific_prices) If it is available on this template then you can try to do something like this {if isset($product.specific_prices) && $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} 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