Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Global Attribute Price

    this thread might get you on the right track ...
    Last edited by haredo; 30 Jan 2013 at 05:38 AM.

  3. #3
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

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

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

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

  5. #5
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

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

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. Global changes to Attribute price?
    By michaelchu in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 18 Dec 2014, 07:44 PM
  2. v138a Bulk update price attributes to reflect global % price increase
    By alexjoverton in forum General Questions
    Replies: 0
    Last Post: 28 Jan 2013, 04:37 PM
  3. global attribute choice
    By spencoid in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 16 Mar 2008, 05:48 AM
  4. global attribute image
    By studeo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jan 2007, 04:27 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