Homeware Trading Co Posted September 17, 2014 Share Posted September 17, 2014 Being a complete novice at Prestashop (and NOT a coder), is there an easy way to replace the "New" product label with another image? Using 1.5.4 default theme and a custom theme. Link to comment Share on other sites More sharing options...
vekia Posted September 17, 2014 Share Posted September 17, 2014 in fact - it's not a image it's a pure css global.css search for .new-box class :-) Link to comment Share on other sites More sharing options...
elewam Posted November 16, 2014 Share Posted November 16, 2014 in fact - it's not a image it's a pure css global.css search for .new-box class :-) How to duplicate it or replace it with a "Sold" label if qty is 0? Link to comment Share on other sites More sharing options...
vekia Posted November 17, 2014 Share Posted November 17, 2014 and what if product will not be marked as new, "sold" label will disappear too, this is what you expect... or? Link to comment Share on other sites More sharing options...
elewam Posted November 19, 2014 Share Posted November 19, 2014 and what if product will not be marked as new, "sold" label will disappear too, this is what you expect... or? if Qty > then 0 is label will be "New" Else either out of stock or sold so here is the logic qty > 0 and product created within defined variable for new Label "New" else qty <=0 it can be sold or out of stock. My site suppose to be for heavy equipment and info. sold label works for me maybe other out of stock makes more sense then sold. www.mgs-usa.net Thanks in advance Link to comment Share on other sites More sharing options...
vekia Posted November 20, 2014 Share Posted November 20, 2014 product-list.tpl change: <span class="new-label">{l s='New'}</span> to: {if $product.quantity<=0} <span class="new-label">{l s='Sold'}</span> {else} <span class="new-label">{l s='New'}</span> {/if} Link to comment Share on other sites More sharing options...
Recommended Posts