Jump to content

problem with [new] badge on product


Recommended Posts

Hello,

 

I have a problem with the display of the [new] attribute in the $product array, actually this value is allways 0 so the parsing of the

{if isset($product.new) && $product.new == 1} .... {/if} never takes place.

Yesterday it was working just fine, but suddendly the "new" attribute is allways equal to 0 without me doing anything on the code.

I'm lost and can't seem to find any reason for it not to show.

my prestashop version 1.5.3.1

Thanks in advance for anyone who can help me

 

EDIT: It does concern the homefeatured module

 

EDIT2: Found out where it comes from, it does come from the Configuration::get('PS_NB_DAYS_NEW_PRODUCT') in the category.php files set to 20 days by default in the database, i changed it and it work fine, sorry for bothering you with such a dumb question.

Edited by Surataro (see edit history)
Link to comment
Share on other sites

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...