Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Location
    Memphis, USA
    Posts
    299
    Plugin Contributions
    0

    Default Globally decrease price by 5%

    Will this SQL code work if I change the 1.35 to 0.95 to decrease price by 5%?

    UPDATE products SET products_price = products_price * 1.35;

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Globally decrease price by 5%

    Provided you are not using a database prefix, yes, that should work. Remember to back up your database first, just in case.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Globally decrease price by 5%

    Personally, I can't see anything wrong with it. I think it's quite a clever little statement. Make sure to do a full db backup beforehand, and pls let me know the results.. I might use this someday.

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

    Default Re: Globally decrease price by 5%

    Credit has to be given to Ajeh for the Sql.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Globally decrease price by 5%

    That will only handle "products", not any pricing factors related to attributes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Price Increase/Decrease by Percentage [Support Thread]
    By badarac in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 4 Apr 2016, 03:23 PM
  2. Price increase decrease (+/-) option not working well
    By omerhanif in forum General Questions
    Replies: 2
    Last Post: 22 Jan 2010, 03:10 PM
  3. Updating an Attribute Price Globally
    By Asdesign in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Oct 2009, 05:57 PM
  4. Daily Storewide Price Increase/Decrease
    By irischant in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 26 Jul 2006, 12:29 AM

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