Forums / General Questions / How to modify the date a new product is added?

How to modify the date a new product is added?

Locked

Started by heather88 on 5 Mar 2008, 3:31 AM · Views: 878

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 Mar 2008, 3:31 AM
#1
heather88 avatar

heather88

New Zenner

Join Date:
Mar 2007
Posts:
35
Plugin Contributions:
0

How to modify the date a new product is added?

I need to add a product in such a way that it won't show up in the New Products listing. I understand that the easiest way to do this is to set the date in the DB to an earlier date, add the product, then re-set the date to current, so that Zen Cart will think the newly added product is actually old........ but HOW DO I DO THAT? How/where do I change the date?
Please, any help will be hugely appreciated!

5 Mar 2008, 3:54 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: How to modify the date a new product is added?

You probably can't change the server's date.

Instead, add the product and then use phpMyAdmin to change the date_added field for that record in the products table.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Mar 2008, 4:27 AM
#3
heather88 avatar

heather88

New Zenner

Join Date:
Mar 2007
Posts:
35
Plugin Contributions:
0

Re: How to modify the date a new product is added?

Oh thank you!! Now that's something I know how to do. :D