lobogc Posted May 23, 2013 Share Posted May 23, 2013 Hello everyone! ALL products in my shop feature specific prices with a reduction. This is necessary in my market (discount perfumery). As far as I know, defining a specific price always causes the "On sale" / "Reduced Price" sign to automatically appear. No matter if the proper checkbox ("Display the on sale icon on the product page") is activated or deactivated in the back-office: it's always overidden if specific prices have been defined. I haven't found anything in Preferences to control this behaviour. I would like to use the "On sale" icon only for certain products with a higher discount, but not for the WHOLE catalog! Is there any way to show "On sale" icon only when the proper checkbox is activated in the back-office, independently from specific prices? Thank you! PS: I'm using Prestashop 1.5.4.1. Link to comment Share on other sites More sharing options...
NemoPS Posted May 24, 2013 Share Posted May 24, 2013 Hi, You might be able to achieve something by editing product.tpl (in your theme's folder). You can find that portion of code by looking for $product->on_sale At this point, you might want to subtract the price from the price without discount. If it's greater than a certain amount, you show the label, otherwise, you don't. Just a rough idea Link to comment Share on other sites More sharing options...
lobogc Posted May 27, 2013 Author Share Posted May 27, 2013 Thank you Nemo! As my website does not feature the standard theme, but a paid one, I've contacted the theme's author to se eif he's kind enough to help. Link to comment Share on other sites More sharing options...
parsifal Posted May 31, 2013 Share Posted May 31, 2013 As far as I know, defining a specific price always causes the "On sale" / "Reduced Price" sign to automatically appear. No matter if the proper checkbox ("Display the on sale icon on the product page") is activated or deactivated in the back-office: it's always overidden if specific prices have been defined. I haven't found anything in Preferences to control this behaviour. The part in bold is not entirely true. When defining a specific price, you have two options depending on the value of the "Leave base price" checkbox: 1. You can leave the base price and enter a percentage or amount-based reduction of that price. In this case, PrestaShop treats this specific price as a price reduction and displays the product where applicable ("Specials" blocks, links etc). Or... 2. You can enter an entirely different new base price and no percentage or amount-based reduction (you should factor this in the new base price). Then, PrestaShop will not treat this product as having a price reduction 1 Link to comment Share on other sites More sharing options...
Recommended Posts