plutten22 Posted February 19, 2016 Share Posted February 19, 2016 Hi. Im using prestashop 1.5.6.0 I wonder if its possible to make prices when they are reduced red color and prices when not reduced blue. I attach picture to show what i want. My page: www.cykelstaden.se Regards Plutten22 Link to comment Share on other sites More sharing options...
Paulito Posted February 19, 2016 Share Posted February 19, 2016 Hello See if this helps you: ul#product_list li span.old_price_productlist {color: red;} Result http://screencast.com/t/zJ762TbiRJ Paul Link to comment Share on other sites More sharing options...
plutten22 Posted February 19, 2016 Author Share Posted February 19, 2016 Hi Paul. You missunderstand me. I want the thick prices to be red or blue depending if the price is reduced or not. The small price with line thru shuld always be black. Plutten22 Link to comment Share on other sites More sharing options...
Paulito Posted February 19, 2016 Share Posted February 19, 2016 Mea culpa, mea culpa, mea maxima culpa I ill look again when time permits Paul Link to comment Share on other sites More sharing options...
plutten22 Posted February 20, 2016 Author Share Posted February 20, 2016 Hi Paul. Yes please if you can. if possible it would be really nice. Plutten22 Link to comment Share on other sites More sharing options...
plutten22 Posted February 22, 2016 Author Share Posted February 22, 2016 Hi Paul. Any possibility to look att this today. Plutten22 Link to comment Share on other sites More sharing options...
geoclassics Posted November 1, 2016 Share Posted November 1, 2016 Was there any solution to this? Link to comment Share on other sites More sharing options...
geoclassics Posted November 7, 2016 Share Posted November 7, 2016 I tried to come up with my own solution. It works but isn't pretty. Maybe someone can suggest a better way of writing it. In the global.css file, I copied and pasted this code, changing ".price" to ".saleprice": .saleprice { font-size: 14px; color: red; /* default black */ white-space: nowrap; font-family: "Roboto", sans-serif; letter-spacing: 0; } Edited file product.tpl, copying this code: <span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}{/if}</span> And pasted it just below itself, and then edited both copies like this: <span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{if $productPriceWithoutReduction <= $productPrice}{convertPrice price=$productPrice|floatval}{/if}</span> <span id="our_price_display" class="saleprice" itemprop="price" content="{$productPrice}">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPrice|floatval}{/if}</span> 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