Global Attribute Price

Views: 2,844

Results 1 to 7 of 7
29 Jan 2013, 8:48 PM
#1
phil_s avatar

phil_s

New Zenner

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

Global Attribute Price

I offer free shipping in the US for many of my products but charge for international shipping. Right now, I have it set with the option name as "International S&H " and the option value as "Add For Mailed International Orders". Every year, when the Post Office raises their rates, I'm forced to update every affected product.
I tried copying the attributes from one product to another but apparently the pricing soes not copy.

Is there any way to globally set the price of an option value so I can update the whole cart without having to open each products attribute controller and entering the new price?

30 Jan 2013, 5:49 PM
#3
phil_s avatar

phil_s

New Zenner

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

Re: Global Attribute Price

Thanks!

Yes, that seems to indicate an easier way to do it but unfortunately the OP simply stated that he figured it out without posting any details. I hate it when people do that. :(

31 Jan 2013, 1:30 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Global Attribute Price

If you want to update ALL Attributes with a specific options_id and options_values_id to a new Price with XX.XX is what to add to the current price and YYY is the Option Name ID and ZZZ is the Option Value ID you can use:

UPDATE products_attributes SET options_values_price = options_values_price + XX.XX WHERE options_id = YYY and options_values_id = ZZZ;

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!

31 Jan 2013, 2:42 PM
#5
phil_s avatar

phil_s

New Zenner

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

Re: Global Attribute Price

I finally finished updating everything manually but will file this away for next year. I promised my son I would never attempt playing with the database again (grin) so when they change the postage rates next year, I'll know what to ask him to do.
Thank you!

31 Jan 2013, 4:18 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Global Attribute Price

Phil,
Before you ever make a change to the database just use the cpanel to make a backup of it, so if you mess it up you can reload the original ...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

31 Jan 2013, 4:30 PM
#7
phil_s avatar

phil_s

New Zenner

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

Re: Global Attribute Price

You're suggesting I break a solemn vow and risk the wrath of he who provides me with free web hosting???

No.....I'm thinking I'm better off simply turning in a support ticket along the line of, "Hey, I'm smoking a whole Rib-Eye tomorrow and if you could take care of this small problem for me before you come over...." :)