KöveZoli Posted November 28, 2016 Share Posted November 28, 2016 Hello, I'd like a new label on the product. Now there is a "new" and "sale", I need a "disappeared" label. I think I can do it the css formatting, but which code lines must be supplemented? Thanks! Link to comment Share on other sites More sharing options...
Daresh Posted November 28, 2016 Share Posted November 28, 2016 First of all, you need to decide what setting on the product will determine it as "disappeared", and then check this condition in the product_list.tpl file, displaying the new label. 1 Link to comment Share on other sites More sharing options...
KöveZoli Posted November 28, 2016 Author Share Posted November 28, 2016 (edited) What I want is "Simple" Function would be as a check sale. http://prntscr.com/dcpz1n Edited November 28, 2016 by Quechua (see edit history) Link to comment Share on other sites More sharing options...
KöveZoli Posted November 29, 2016 Author Share Posted November 29, 2016 (edited) product.tpl: <!-- disappeared--> {if $product->condition == 'disappeared'} <span class="disappeared-box no-print"> <span class="disappeared-label">{l s='disappeared'}</span> </span> {/if} <!-- end disappeared--> product-list.tpl: <!-- disappeared--> {if $product.condition == 'disappeared'} <a class="disappeared-box" href="{$product.link|escape:'html':'UTF-8'}"> <span class="disappeared-label">{l s='disappeared'}</span> </a> {/if} <!-- end disappeared--> Edited November 29, 2016 by Quechua (see edit history) 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