Page 1 of 8 123 ... LastLast
Results 1 to 10 of 76
  1. #1

    Default Increase price on all products universally?

    [FONT=Times New Roman]Hello guys[/FONT]
    [FONT=Times New Roman][/FONT]
    [FONT=Times New Roman]I need to increase 35% to all my products in zen_products [/FONT]
    [FONT=Times New Roman][/FONT]
    [FONT=Times New Roman]Can you help with the script to used in mysql[/FONT]


    Please help..........

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

    Default Re: Increase price on zen_products

    This is two step ...

    Backup your database before doing this ...

    In the Tools ... Insert SQL Patch ... you can run the command:
    PHP Code:
    UPDATE products SET products_price products_price 1.35
    Then go to the Tools ... Store Manager ... and run the Update Products Price Sorter ...

    NOTE: If you have attributes you have to look to see if you can use something similar for them as well ...

    NOTE: if you have Specials, you will need to update those as well but it depends on how your specials are made ...
    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: v1.5.5]
    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
    Mar 2004
    Posts
    688
    Plugin Contributions
    0

    Default Re: Increase price on zen_products

    I'll thank you for that one!! Handy little tid-bit!
    Marg

  4. #4

    Default Re: Increase price on zen_products

    Hello AJEH

    your MYSQL script work very good.........

    thanks

  5. #5
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: Increase price on zen_products

    i have a post regarding inflation etc and it goes into a little more detail. if you search for inflation you should find it.

  6. #6
    Join Date
    Jan 2008
    Location
    Memphis, USA
    Posts
    299
    Plugin Contributions
    0

    Default Re: Increase price on zen_products

    Quote Originally Posted by Ajeh View Post
    This is two step ...

    Backup your database before doing this ...

    In the Tools ... Insert SQL Patch ... you can run the command:
    PHP Code:
    UPDATE products SET products_price products_price 1.35
    Then go to the Tools ... Store Manager ... and run the Update Products Price Sorter ...

    NOTE: If you have attributes you have to look to see if you can use something similar for them as well ...

    NOTE: if you have Specials, you will need to update those as well but it depends on how your specials are made ...
    If I need to decrease prices by 5% do I change the 1.35 referenced in the quote to 0.95?

  7. #7
    Join Date
    Jul 2004
    Location
    The Netherlands, Wierden
    Posts
    430
    Plugin Contributions
    0

    Default Re: Increase price on zen_products

    Don't forget the products_price_sorter either with this
    Code:
    UPDATE products SET products_price_sorter = products_price_sorter * 1.35;  

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

    Default Re: Increase price on zen_products

    Wait ... don't do the Products Price Sorter in that method ...

    You want to use the updater in the Tools ... Store Manager ... as I mentioned above to do the fix on the products_price_sorter ...

    That price is not always the same as the products_price and updates to it need to be processed ...

    While a percentage change to both fields may "appear" to work, this is not always the case and will result in displays in price order to become jumbled ...

    It can work under "some" circumstances, however, the safe and sure way to update that field is to use the Update in the Store Manager and do it the right way ...
    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: v1.5.5]
    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!

  9. #9
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: Increase price on zen_products

    If I want to increase the price to 4%, is this the right setting?
    PHP Code:
    UPDATE products SET products_price products_price 0.04

  10. #10

    Default Re: Increase price on zen_products

    No, this is:
    Code:
    UPDATE products SET products_price = products_price * 1.04;

 

 
Page 1 of 8 123 ... LastLast

Similar Threads

  1. v139h How to add % to price in all my products?
    By dmagic in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Sep 2013, 09:18 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. Set all products to same price
    By ian_m in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Nov 2009, 12:23 AM
  4. All my products are half price
    By paddy100 in forum Customization from the Admin
    Replies: 3
    Last Post: 22 Apr 2009, 07:18 PM

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