Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attributes Price Markup

    If the goal is for Attribute Price to change:
    10.00 to 13.20
    100.00 to 121.20
    5.00 to 7.20
    99.00 to 120.00
    then use the SQL of:
    Code:
    UPDATE products_attributes as pa 
    LEFT JOIN products as p ON  pa.products_id = p.products_id
    LEFT JOIN products_options_values as pov ON pov.products_options_values_id = pa.options_values_id
    SET pa.options_values_price = ((pa.options_values_price +1.00) * 1.20)
    WHERE p.master_categories_id = 67;
    NOTE: Be sure to backup your database before trying this ...
    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!

  2. #12
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Attributes Price Markup

    Quote Originally Posted by Ajeh View Post
    If the goal is for Attribute Price to change:


    then use the SQL of:
    Code:
    UPDATE products_attributes as pa 
    LEFT JOIN products as p ON  pa.products_id = p.products_id
    LEFT JOIN products_options_values as pov ON pov.products_options_values_id = pa.options_values_id
    SET pa.options_values_price = ((pa.options_values_price +1.00) * 1.20)
    WHERE p.master_categories_id = 67;
    NOTE: Be sure to backup your database before trying this ...
    Ok thanks again Linda, thats exactly what I need.
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  3. #13
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: Attributes Price Markup

    Quote Originally Posted by Nick1973 View Post
    Ok thanks again Linda, thats exactly what I need.
    Actually Linda while I need that solution I also need it globally so would I do something like

    UPDATE products_attributes SET options_values_price = options_values_price +1.00 * 1.20;

    if I wanted to update every products attributes by £1.00 and then add 20% globally?
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

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

    Default Re: Attributes Price Markup

    I would use:
    Code:
    UPDATE products_attributes SET options_values_price = ((options_values_price +1.00) * 1.20);
    NOTE: Again, be sure to backup and test this to ensure that all is right in the world when done ...
    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. #15
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: Attributes Price Markup

    Thanks again Linda, I think thats everything I need now on this part.

    Happy New Year by the way
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

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

    Default Re: Attributes Price Markup

    You are most welcome ... glad that you have this all sorted out ...

    Have a great New Year!
    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!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Price markup / down?
    By HBELLC in forum General Questions
    Replies: 1
    Last Post: 11 Jan 2012, 04:37 PM
  2. Price-Range Percentage Profit Markup [SEMI-WORKING] Need Help!
    By AndyVI in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 17 Mar 2011, 02:02 PM
  3. Mass price markup?
    By dom_prospot in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 2 Aug 2007, 06:19 AM
  4. Global Price Markup and Handling Fee Mod
    By Farrukh in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 24 Aug 2006, 01:52 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