Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    36
    Plugin Contributions
    0

    Default Attribute Pricing

    Is there a way to price all the attributes at once under one option name? I have 35 or so option values, and they each would add $4.00 to the product. Is there a way I can avoid having to price each one individually?
    Thanks!

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

    Default Re: Attribute Pricing

    This would depend on how you have things setup and whether or not the options_id and options_values_id pair is for a given products_id to make the same price or if "all" options_id and options_values_id pair are the same price regardless of products_id ...

    For ALL products_id with ALL options_values_id to be 4.00 you can use:
    Code:
    UPDATE products_attributes SET options_values_price = 4.00, price_prefix = '+' WHERE options_id = 12;
    For ALL products_id with the same pair of options_id and options_values_id you can use:
    Code:
    UPDATE products_attributes SET options_values_price = 4.00, price_prefix = '+' WHERE options_id = 12 and options_values_id = 13;
    For a given products_id you can adapt the code above to be:
    For ALL products_id with ALL options_values_id to be 4.00 you can use:
    Code:
    UPDATE products_attributes SET options_values_price = 4.00, price_prefix = '+' WHERE options_id = 12 and products_id= 27;
    For ALL products_id with the same pair of options_id and options_values_id you can use:
    Code:
    UPDATE products_attributes SET options_values_price = 4.00, price_prefix = '+' WHERE (options_id = 12 and options_values_id = 13) and products_id= 27;
    NOTE: before attempting any of these, you will want to backup your database ...

    NOTE: the commands can be run in the Tools ... Install SQL Patches ... from the Zen Cart Admin
    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
    May 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Attribute Pricing

    Thank you SO much! It worked. You just made my job a whole lot easier :)

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

    Default Re: Attribute Pricing

    Glad to hear that this worked for you to save you hours and hours and hours of work ... remember us when you are rich and famous ...
    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!

 

 

Similar Threads

  1. v150 Attribute pricing...
    By rainbow_pixie_star in forum Setting Up Categories, Products, Attributes
    Replies: 23
    Last Post: 6 Mar 2014, 10:14 PM
  2. Attribute variables or skip/branch & advanced attribute pricing help
    By tee2020 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Jun 2011, 02:56 AM
  3. Attribute Pricing
    By adpastor in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 17 Nov 2010, 04:29 PM
  4. 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
  5. Attribute images and/or attribute pricing
    By tryphon in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 6 Apr 2009, 09:38 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