Forums / Setting Up Categories, Products, Attributes / mass changing expiry days on all products

mass changing expiry days on all products

Locked

Views: 1,263

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
6 Dec 2010, 8:19 PM
#1
cbest avatar

cbest

New Zenner

Join Date:
Oct 2010
Posts:
5
Plugin Contributions:
0

mass changing expiry days on all products

Hi guys, I have a client using ZenCart who has several hundred downloadable products, all of which expire 7 days after purchasing. She now wants to change this to 14 days.

Is there an easy way to do this in Zencart without changing each product one by one? I can't seem to find anything on the forums about it.

Thanks in advance!

6 Dec 2010, 8:38 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: mass changing expiry days on all products

I have a client using ZenCart
If you are up on mysql DB's one could write a sql statement to change in mass
Or hire one to write one for you

Zen-Venom Get Bitten

6 Dec 2010, 8:44 PM
#3
cbest avatar

cbest

New Zenner

Join Date:
Oct 2010
Posts:
5
Plugin Contributions:
0

Re: mass changing expiry days on all products

You can hire someone to do anything, yes.

But I doubt this is the first time this has come up and I'm hoping someone in here knows what to do or has already written the query...

6 Dec 2010, 8:46 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: mass changing expiry days on all products

I doubt this is the first time this has come up and I'm hoping someone in here knows what to do or has already written the query...
Well are you doing this for your client for free??

Zen-Venom Get Bitten

6 Dec 2010, 9:00 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: mass changing expiry days on all products

If you want to change ALL Downloads that are 7 days to 14 days you can run the following SQL statement and this will be used on future orders ...

UPDATE products_attributes_download SET products_attributes_maxdays = 14 WHERE products_attributes_maxdays = 7;

NOTE: be sure to backup your database before running this SQL statement ...

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!

6 Dec 2010, 9:02 PM
#6
cbest avatar

cbest

New Zenner

Join Date:
Oct 2010
Posts:
5
Plugin Contributions:
0

Re: mass changing expiry days on all products

Ajeh, you are fantastic, thank you, thank you, thank you!!!

This will only work on future orders and not existing orders? Is it difficult to change existing orders as well?

6 Dec 2010, 9:05 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: mass changing expiry days on all products

This would be very similar using:

UPDATE orders_products_download SET download_maxdays = 14 WHERE download_maxdays = 7;

Do remember us when you are rich and famous and send along the coffee and donuts ... :cool:

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!

6 Dec 2010, 9:40 PM
#8
cbest avatar

cbest

New Zenner

Join Date:
Oct 2010
Posts:
5
Plugin Contributions:
0

Re: mass changing expiry days on all products

You, sir, are a gentleman and a scholar! Please give me a way to reach you to hire you for Zen Cart work in the future!