Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2013
    Location
    Portishead, North Somerset, United Kingdom
    Posts
    34
    Plugin Contributions
    0

    Default Attribute Prices - Increase all of them by £5 or fixed percentage

    Hi Everyone,

    Can anyone advise how I can add a set value or % to all my product attribute prices globally. I have approximately 1,000 products, each with a drop-down menu of various prices (e.g.. 1000 qty - £40 etc).

    My products are priced by attributes, so I need in increase the attribute prices alone site-wide, not the base price as that is set to zero.

    All products/prices are different so I cannot copy from another category. I need a MYSQL method.

    Any help appreciated.

    Thanks

  2. #2
    Join Date
    Oct 2013
    Location
    Portishead, North Somerset, United Kingdom
    Posts
    34
    Plugin Contributions
    0

    Default Re: Attribute Prices - Increase all of them by £5 or fixed percentage

    Quote Originally Posted by Matt Staines View Post
    Hi Everyone,

    Can anyone advise how I can add a set value or % to all my product attribute prices globally. I have approximately 1,000 products, each with a drop-down menu of various prices (e.g.. 1000 qty - £40 etc).

    My products are priced by attributes, so I need in increase the attribute prices alone site-wide, not the base price as that is set to zero.

    All products/prices are different so I cannot copy from another category. I need a MYSQL method.

    Any help appreciated.

    Thanks
    Okay, so I've figured out I can use:
    Code:
    update products_attributes set options_values_price = options_values_price +5;
    to update all my prices in attributes. Unfortunately this updates ALL attributes such as "file upload" and other attributes that do not have prices on my store resulting in a price appearing next to them.

    Can anyone tell me how I would update a specific attribute?

  3. #3
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Attribute Prices - Increase all of them by £5 or fixed percentage

    Couple of ways. There's easyPopulate whichwould allow you to download, update the prices, then upload.

    There's what you had, but if understood correctly you don't want to update prices of things that currently have a zero value, so you could append WHERE options_values_price != 0

    The other thing would be to use the WHERE clause to omit attributes of a certain type. I apologize that iable to recall nor investigaate the fields in that table to advise of the proper option(s) to choose from, but looks like you are marching down the right path.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Oct 2013
    Location
    Portishead, North Somerset, United Kingdom
    Posts
    34
    Plugin Contributions
    0

    Default Re: Attribute Prices - Increase all of them by £5 or fixed percentage

    Thanks.

    Just worked it out with a bit of MSQL googling!

    Code:
    update zen_products_attributes set options_values_price = options_values_price +5 where options_id=X

  5. #5
    Join Date
    Oct 2013
    Location
    Portishead, North Somerset, United Kingdom
    Posts
    34
    Plugin Contributions
    0

    Default Re: Attribute Prices - Increase all of them by £5 or fixed percentage

    This would make a good admin function. Something to update certain attributes globally.

    Choose Attribute [options_id]---> Change by % or fixed value ---> Update [run sql script].

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Attribute Prices - Increase all of them by £5 or fixed percentage

    I haven't had to do something like that, but I seem to remember some modifications were possible globally associated with attributes in the option names/option values sections. It may only be a copy/delete capability, but there does seem to be some options to copy costs associated with the lower option/selection.

    Further, because I haven't had to do that type of mass work, I haven't come to understand exactly the full capabilities offered there. I've seen explanations and ithas made sense at the time, but don't use it lose it wins in that regards. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Fixed Price increase with Any Attribute Selected?
    By gabstero in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 18 Mar 2013, 05:23 PM
  2. Percentage Increase On Attribute Price?
    By infocom in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 24 Oct 2012, 05:14 PM
  3. All my prices have gone up by a certain percentage?!
    By nonfinite in forum General Questions
    Replies: 0
    Last Post: 24 Feb 2010, 10:02 PM
  4. Percentage increase on attribute pricing
    By monmouthtaxis in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Jun 2008, 11:42 AM
  5. How to decrease/increase ALL prices
    By Vadfloyd in forum General Questions
    Replies: 2
    Last Post: 28 Jan 2008, 05:29 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR