Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,916
    Plugin Contributions
    3

    Default Re: Changing price for all items at same time

    Quote Originally Posted by smcelligott View Post
    I'd like to change by a percentage . . . can I use:

    UPDATE products SET products_price= products_price x .90909;

    I want to change prices to 10/11 of what they are now, just not sure how to do that in SQL

    Thanks, Sean
    That should be OK. Use * not x for "multiply". It will change ALL prices.
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  2. #12
    Join Date
    Nov 2009
    Location
    Sydney Australia
    Posts
    64
    Plugin Contributions
    0

    Default Re: Changing price for all items at same time

    Quote Originally Posted by schoolboy View Post
    That should be OK. Use * not x for "multiply". It will change ALL prices.
    Schoolboy, yep tried "x" yesterday and it failed, then tried * and it worked just fine. On a related issue, I had some rounding issues. Is there a SQL statement that can modify a product price of $126.36364 to just $126.36?
    Sean McElligott

  3. #13
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    3,954
    Plugin Contributions
    1

    Default Re: Changing price for all items at same time

    Quote Originally Posted by smcelligott View Post
    Schoolboy, yep tried "x" yesterday and it failed, then tried * and it worked just fine. On a related issue, I had some rounding issues. Is there a SQL statement that can modify a product price of $126.36364 to just $126.36?
    http://www.w3resource.com/mysql/math...d-function.php

    Cheers
    Rod
    New support site for the ozpost shipping module now live!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Same price for ALL products
    By juukyuu in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Jan 2012, 12:18 AM
  2. changing servers and upgrading to 1.3.9 at same time
    By AlleyO in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 28 Jan 2011, 08:30 AM
  3. Delete all categories at the same time?
    By jgnet in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 21 Jul 2010, 05:22 PM
  4. changing price for multiple items at once?
    By gorie in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 5 Jul 2009, 04:01 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
  •