DARKF3D3 Posted April 14, 2016 Share Posted April 14, 2016 This is the code I'm using: {if $page_name != 'index' && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} <span class="sale-box"> <span class="sale-label">{l s='Sale!'}</span> </span> {elseif (isset($product.new) && $product.new == 1 && $page_name != 'index') || (isset($product.new) && isset($new_products))} <span class="new-box"> <span class="new-label">{l s='New'}</span> </span> {/if} The SALE badge it's showed, but not the NEW one, also if the product it's new and not with price reduction. I don't understand what's wrong. Link to comment Share on other sites More sharing options...
AndersHelbo Posted April 14, 2016 Share Posted April 14, 2016 Tried clearing cache? Link to comment Share on other sites More sharing options...
DARKF3D3 Posted April 14, 2016 Author Share Posted April 14, 2016 Yes, I'm using this code from about one year, but I never found a solution. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted May 4, 2016 Author Share Posted May 4, 2016 Any help? Link to comment Share on other sites More sharing options...
tuk66 Posted May 4, 2016 Share Posted May 4, 2016 This code is in the default-bootstrap theme: {if $product->new} <span class="new-box"> <span class="new-label">{l s='New'}</span> </span> {/if} 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