And you keep seeing the NEW icons even though your products are added more than 1 week ago. Is that correct?
It might be because of the "wrong" today's date or the wrong "created_on" date. Because we are comparing the product creation date with the today's date. If the difference is longer than the TIME FRAME. the NEW icon should have been gone.
The "today's date" is taken from your server with the official PHP function
$today = strtotime(date("Y-m-d G:i:s")); //todays date
more info:
php.net/manual/en/function.date.php
There are 2 possible problems that may lead this wrong calculation:
1- Your server gives wrong today's date (which is non-sense, servers won't do it)
2- Your Virtuemart doesn't store the "created date" properly. (especially if you migrate/import your product from somewhere else, this will lead this problem)
The 2nd option is more possible. But we need to make sure, who is at fault.
the "creation date" for each product can only be seen from the PHPMyAdmin. Open the PHPMyAdmin of your hosting and find this table:
#__virtuemart_products
Click the "BROWSE" button and see the screenshot:
(every row in this table represents 1 product)
Attachment Pasted_Image_5_26_14__6_17_PM.png not found
Regards,
Support