Jump to content

Showing badge NEW on new product in product list


Recommended Posts

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

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...