Forums / Setting Up Categories, Products, Attributes / Updating Attribute Pricing

Updating Attribute Pricing

Locked

Views: 1,500

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
3 Dec 2008, 8:05 AM
#1
harry2cool avatar

harry2cool

Zen Follower

Join Date:
Oct 2005
Posts:
280
Plugin Contributions:
0

Updating Attribute Pricing

I need to add $1 to 2 option values, the problem is I have over 500 of those products, is there an easy way to add price to certain option values.

Any help will be appreciated :)

4 Dec 2008, 8:04 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Updating Attribute Pricing

If you were to look at all of the options_id and options_values_id and checked their actual values in the products_attributes ... do you notice if all of them are the same for where you need to add the $1.00?

Does every single one of these need to have the $1.00 added to the Attributes Price ( the options_values_price field) when options_id = XX and options_values_id = YY ...

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!

5 Dec 2008, 4:28 AM
#3
harry2cool avatar

harry2cool

Zen Follower

Join Date:
Oct 2005
Posts:
280
Plugin Contributions:
0

Re: Updating Attribute Pricing

All the 2 attribute values need to have the $1.00 added to the Attributes Price ( the options_values_price field) when options_id = XX and options_values_id = YY ...

2 attributes values of the same attribute name on all products need to have this price added.

5 Dec 2008, 2:04 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Updating Attribute Pricing

What are the values of the options_id and options_values_id in the products_attributes table for these attribute values?

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!

5 Dec 2008, 6:56 PM
#5
harry2cool avatar

harry2cool

Zen Follower

Join Date:
Oct 2005
Posts:
280
Plugin Contributions:
0

Re: Updating Attribute Pricing

for the first attribute value

options_id:96
options_values_id: 418

For the 2nd one:

options_id: 96
options_values_id: 419

5 Dec 2008, 8:18 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Updating Attribute Pricing

Back up your database first ... then you should be able to use the following to increase the attribute price (options_values_price) by $1.00 for Option Name 96 and Option Value 418 on the table :

UPDATE products_attributes SET options_values_price = options_values_price + 1.00 WHERE options_id = 96 and options_values_id = 418;

Then adapt that as needed ...

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 2008, 4:16 AM
#7
harry2cool avatar

harry2cool

Zen Follower

Join Date:
Oct 2005
Posts:
280
Plugin Contributions:
0

Re: Updating Attribute Pricing

Thanks for a great help Ajeh :) ,
makes my life easier !

7 Dec 2008, 3:32 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Updating Attribute Pricing

You are most welcome ... thanks for the update that this will work for you ... :smile:

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!

30 Jan 2009, 7:21 PM
#9
femsawyer avatar

femsawyer

New Zenner

Join Date:
Aug 2004
Posts:
33
Plugin Contributions:
0

Re: Updating Attribute Pricing

Oh wow - I'm going to have to save this thread in my favorites. This is something I'm going to need about every 6 months when new supplier catalogs are released.
Sure wish something like this was built directly into the attributes section.

Several of my products have "add-on" products (required to complete the main product although the customer may already have them) I have the add-ons setup as attributes. It would be nice to have the price tied into the attribute somehow and not the individual product so that when I edit a main attribute price, it updates it across all products that include that attribute.

Would there be a better way to setup the products than I have above? I need more than just a cross-selling or suggestive selling function as I need them to know that they NEED these additional products to complete the main product if they don't already have them.