Forums / Setting Up Categories, Products, Attributes / Global Changes to Download Days and Counts?

Global Changes to Download Days and Counts?

Locked

Views: 3,311

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
5 Apr 2008, 7:15 AM
#1
kittiemd avatar

kittiemd

New Zenner

Join Date:
Mar 2008
Posts:
52
Plugin Contributions:
0

Global Changes to Download Days and Counts?

If I have all of my download files set up for 10 Days and 5 Downloads and want to change all of my downloads to 7 Days and 7 Downloads, how do I do that?

I would really like to change them all at once. I'm hoping that I don't have to change each one individually because I have hundreds. LOL!

Thanks in advance! :smile:

7 May 2008, 7:15 AM
#2
kittiemd avatar

kittiemd

New Zenner

Join Date:
Mar 2008
Posts:
52
Plugin Contributions:
0

Re: Global Changes to Download Days and Counts?

Anyone? I'm really hoping that I don't have to change 800+ items one at a time. LOL! :)

7 May 2008, 7:27 AM
#3
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Global Changes to Download Days and Counts?

Try
admin/configuration/attribute settings ?

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

7 May 2008, 2:20 PM
#4
kittiemd avatar

kittiemd

New Zenner

Join Date:
Mar 2008
Posts:
52
Plugin Contributions:
0

Re: Global Changes to Download Days and Counts?

misty:

Try
admin/configuration/attribute settings ?

I tried that and it changes it for new products but not all of the old products. So when I add a new product, it's right, but all of the previous products stay the same.

Thanks Misty :)

7 May 2008, 2:31 PM
#5
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Global Changes to Download Days and Counts?

Then it's probably doable directly into/via database...you need zencart
dev i.e. ajeh, to explain how.
She wrote downloads for zencart.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

7 May 2008, 2:44 PM
#6
kittiemd avatar

kittiemd

New Zenner

Join Date:
Mar 2008
Posts:
52
Plugin Contributions:
0

Re: Global Changes to Download Days and Counts?

misty:

Then it's probably doable directly into/via database...you need zencart
dev i.e. ajeh, to explain how.
She wrote downloads for zencart.
Thanks again, Misty! :)

8 May 2008, 10:56 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Global Changes to Download Days and Counts?

The information on the number of days and download attempts is stored in the:
products_attributes_download

table and in the fields:
products_attributes_maxdays
products_attributes_maxcount

To change ALL existing Products with ANY download attributes to use the new values of 7 Days and 7 Download attempts you can run, from the Tools ... Install SQL Patches ... the following:

UPDATE products_attributes_maxdays SET products_attributes_maxdays= 7, products_attributes_maxcount = 7;

NOTE: Backing up your database is a good idea before doing this ...

Then, set your defaults to 7 Days and 7 Download Count for future referrence ...

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 May 2008, 11:06 PM
#8
kittiemd avatar

kittiemd

New Zenner

Join Date:
Mar 2008
Posts:
52
Plugin Contributions:
0

Re: Global Changes to Download Days and Counts?

Thank you, Linda!! :)

22 Dec 2008, 11:47 PM
#9
kittiemd avatar

kittiemd

New Zenner

Join Date:
Mar 2008
Posts:
52
Plugin Contributions:
0

Re: Global Changes to Download Days and Counts?

Linda, I just tried it and here are the errors I got:

Error Failed: 1

Error ERROR: Cannot execute because table products_attributes_maxdays does not exist. CHECK PREFIXES!

Warning Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.

23 Dec 2008, 5:24 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Global Changes to Download Days and Counts?

I was testing you ... yeah ... that's it ... testing you ... :cool:

See if this works better ...

To set Maximum Days to Download to 7 and Maximum Download Attempts Count to 10 ...

UPDATE products_attributes_download SET products_attributes_maxdays= 7, products_attributes_maxcount = 10;  

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!

23 Dec 2008, 5:37 AM
#11
kittiemd avatar

kittiemd

New Zenner

Join Date:
Mar 2008
Posts:
52
Plugin Contributions:
0

Re: Global Changes to Download Days and Counts?

It worked like a charm! I hope I passed the test! :D LOL! Thank you so much!

23 Dec 2008, 2:38 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Global Changes to Download Days and Counts?

Thanks for the update that this worked for you ... I got a little wild on the cut and past of the wrong code ... :blink:

Good luck with your cart and have a good holiday!

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!