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

TOPIC: Time-frame for NEW icon not show to all groops

Time-frame for NEW icon not show to all groops 10 years 9 months ago #5420

Hi,
I have a problem with icon new, which is not shown to anonymos shoppers, but just to default shoppers. What can I do?

In plugin Flexible VM2 Template, I have turn it on and the time is 2 weeks. How is this connected with the different shopper groups?
Attachments:
The administrator has disabled public write access.

Time-frame for NEW icon not show to all groops 10 years 8 months ago #5955

I found out that icon new disapere when I add second price for product.

I have two shopper groups. When I add first price to anonymous users icon new is shown, but when I add the second price for special shoppers the icon disapere.

How can I fix this?
Attachments:
The administrator has disabled public write access.

Time-frame for NEW icon not show to all groops 10 years 8 months ago #5971

Hi,

Honestly, i don't know what is going on there. Because the "NEW" label appears based on the "creation" time, it has nothing to do with the price settings. The NEW icon shows off based on when the product is created and what time period you chose through plugin (you said you chose; 2 weeks).

Let me give you the idea behind that NEW functionality:

First of all, this PHP line:
strtotime(($product->created_on)

is used to get the "creating date" from MySQL. Which is a defined variable by Virtuemart Component. This "created_on" is stored in your MySQL for each product. And then this gets compared by today's date. If the GAP is less than the time period you choose (i.e 2 weeks) then it shows the NEW icon, if it is greater, nothing is shown.

As you can see this procedure, prices never gets involved. It is all about the "created_on" parameter that stored in the MySQL, which always persist.

Keep this in mind: If you create a product, then decide to modify it. (change the name, change the price etc..) This won't change the "creation date" for this product. Because create_on parameter always be the same. To refresh it, you need to create a NEW product from scratch.

Regards.
The administrator has disabled public write access.
Time to create page: 0.099 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