Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Location
    Israel
    Posts
    161
    Plugin Contributions
    0

    Default Updating an Attribute Price Globally

    I've done some search on the forum before posting but I still need a certain answer for this.

    From what I read I understood that this can only be done by altering the SQL? No option available in the admin for that, correct? If so, I've got my answer, thanks!

    I know that I could easily use copy attribute to categories but my products do not contain the same attributes...its quite specific for each product so doing it that way is a no-go.

    P.S., is there an option in the admin that makes attributes sort by price?
    Last edited by Asdesign; 3 Oct 2009 at 07:17 PM.

  2. #2
    Join Date
    Oct 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Updating an Attribute Price Globally

    This is something I'd really like to be able to do.

    I have set up categories with 3 products in each, a small, medium and large. Each of these products has 1 or 2 attributes. (Dependant attributes would've been great, but at the moment I had to set it up like this).

    The price for the attributes is the same for all "Small" products, all "Medium" products, etc. It would be fantastic to be able to set a price for each Option Value as it would avoid going through each product in turn.

    Any ideas or thoughts on if this is possible would be great.

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

    Default Re: Updating an Attribute Price Globally

    Set up a Product with the Attributes and Prices manually ...

    Browse, via phpMyAdmin, the products_attributes table and look for the values in:
    options_id
    options_values_id

    Once you can identify the Option Name and Option Value, you could run a SQL command to update the prices ...

    Backup your database before attempting this or you will be doomed ...

    Code:
    UPDATE products_attributes SET options_values_price = XX.XX WHERE options_id = YY and options_values_id = ZZ;
    where XX.XX is the Price for the Attribute and YY is the Option Name (options_id) for Size and ZZ is the Option Value (options_values_id) for Small ...
    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. Globally decrease price by 5%
    By coucho in forum General Questions
    Replies: 4
    Last Post: 18 Mar 2008, 05:31 AM
  2. attribute applied globally
    By seattleannie in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Feb 2008, 07:27 AM
  3. Updating an attribute price
    By Scarlet in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Nov 2007, 11:35 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. Globally Setting Default Attribute
    By tcschmit in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 May 2007, 08:44 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