Forums / General Questions / Expected date products - change date for all.

Expected date products - change date for all.

Locked

Views: 1,489

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
7 Nov 2010, 11:16 PM
#1
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Expected date products - change date for all.

Hi everyone

Say you have 100 products you expect to have in december. And you you want to change the expecting date for all these 100. IS there a way to select all those products which this considers and then select a date and click update? Istead of having to do it manually 1 and 1 product.

Thanks

8 Nov 2010, 4:41 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Expected date products - change date for all.

If the date you want to change is for December 22, 2010 ... and you want to set it to December 25, 2010 then you could use:

UPDATE products SET products_date_available = '2010-12-25' WHERE products_date_available >= '2010-12-22' and products_date_available < '2010-12-23';

Before doing this, you want to make a backup of your database first ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Nov 2010, 5:06 PM
#3
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Re: Expected date products - change date for all.

Ajeh:

If the date you want to change is for December 22, 2010 ... and you want to set it to December 25, 2010 then you could use:

UPDATE products SET products_date_available = '2010-12-25' WHERE products_date_available >= '2010-12-22' and products_date_available < '2010-12-23';

> 
> Before doing this, you want to make a backup of your database first ...

Great idea. Thanks :)