Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - Asymmetric (SKU# FLEX-00017)

TOPIC: product icon NEW

product icon NEW 9 years 10 months ago #9911

Hi,

I would like to ask you,

When I create and add new product to some category, e.g. to D/A converters icon NEW appears not only on new but at all old products.

That same happens for each category.

Best regards

Stanislav Juhas
Attachments:
The administrator has disabled public write access.

product icon NEW 9 years 10 months ago #9926

Hi,

If the product is added within 15 days (15days by default), the NEW badge will show up. You can change this 15 days through "Flexible VM2 Template" plugin. Open the plugin, and look for the "Time frame for NEW icon" parameter.


Attachment Pasted_Image_4_28_14__9_37_PM_2014-05-22.png not found



If you like Asymmetric and satisfied with the support you have received, please "write a review" on:
www.flexiblewebdesign.com/Joomla-Virtuemart-Templates/Asymmetric

Rate Asymmetric and write a couple of sentences to share your experience with the support team.
It won't take more than 2 minutes from you but it is extremely important for us.

Thanks in advance!

Regards,
Support
Last Edit: 9 years 10 months ago by Support.
The administrator has disabled public write access.

product icon NEW 9 years 10 months ago #9935

Hi,

But that old products was added a few months ago, three or four i mean

Regards
SJ
The administrator has disabled public write access.

product icon NEW 9 years 10 months ago #9946

Hi,

What option did you choose for the "Time-frame for NEW Icon" parameter?

Regards.
The administrator has disabled public write access.

product icon NEW 9 years 10 months ago #9959

Hi,

I choose 1 week.

Regards.

SJ
The administrator has disabled public write access.

product icon NEW 9 years 10 months ago #9976

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
Last Edit: 9 years 10 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.105 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo