Przemysław Suszek Posted June 20, 2017 Share Posted June 20, 2017 (edited) Hi, I want to add ribbon when when product has got discount price. In /themes/default-bootstrap/product-list.tpl I wan to add this ribbon but I don't know how to write if statement. {if isset($product.specificPrice) && $product.specificPrice == 1} <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}"> <span class="new-label">{l s='New'}</span> </a> {/if} $product.special ? Hmm Thanks for help. Kind regards --edit Solved. {if isset($product.specific_prices.id_specific_price) && $product.specific_prices.id_specific_price != 0} <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}"> <span class="new-label">{l s='Promo'}</span> </a> {/if} Edited June 20, 2017 by mr.suchy (see edit history) Link to comment Share on other sites More sharing options...
and_kevin Posted November 20, 2018 Share Posted November 20, 2018 On 6/20/2017 at 2:22 PM, mr.suchy said: {if isset($product.specific_prices.id_specific_price) && $product.specific_prices.id_specific_price != 0} <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}"> <span class="new-label">{l s='Promo'}</span> </a> {/if} Hello Which line did you add at please? Regards 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