Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2005
    Posts
    287
    Plugin Contributions
    0

    red flag 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 :)

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Oct 2005
    Posts
    287
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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. #5
    Join Date
    Oct 2005
    Posts
    287
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 :

    Code:
    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!

  7. #7
    Join Date
    Oct 2005
    Posts
    287
    Plugin Contributions
    0

    Default Re: Updating Attribute Pricing

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

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Updating Attribute Pricing

    You are most welcome ... thanks for the update that this will work for you ...
    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!

  9. #9

    Default 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.

 

 

Similar Threads

  1. v150 Attribute pricing not updating in cart.
    By nwms8 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 3 Aug 2012, 06:39 AM
  2. Different Quantity Pricing & Corresponding Attribute Pricing
    By benlau in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 19 Jan 2010, 03:59 PM
  3. Updating Pricing
    By cmezzetta in forum General Questions
    Replies: 1
    Last Post: 11 Nov 2008, 05:42 PM
  4. Updating Product Pricing Globally
    By Tswift42 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 12 Jun 2007, 10:46 AM
  5. Updating global pricing by 10%
    By brisbanetimeout in forum General Questions
    Replies: 6
    Last Post: 30 Nov 2006, 01:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg