Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Posts
    43
    Plugin Contributions
    0

    Default Update prices per category not working

    I'm trying to update the prices per category with:

    UPDATE products SET products_price = products_price = x.xx WHERE master_categories_id = xx;

    But the prices are not updated after the insertion. The price fields are blank.
    I just want to set a price, not % or such.

    Any suggestions?
    Thanks

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Update prices per category not working

    Quote Originally Posted by pascal020 View Post
    I'm trying to update the prices per category with:

    UPDATE products SET products_price = products_price = x.xx WHERE master_categories_id = xx;

    But the prices are not updated after the insertion. The price fields are blank.
    I just want to set a price, not % or such.

    Any suggestions?
    Thanks
    Have you tried:
    Code:
    UPDATE products SET products_price = x.xx WHERE master_categories_id = xx;
    And is it that you are trying to make all items have the same price, correct?

    By-the-way, backup your database before using the above suggestion. It should result in a change of products_price, but wouldn't want something to go wrong and not be recoverable.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Aug 2009
    Posts
    43
    Plugin Contributions
    0

    Default Re: Update prices per category not working

    mc12345678, it is working :)

    Yes, same prices in the category and yes, I always backup before making changes to the database.

    Many thanks

 

 

Similar Threads

  1. v151 Looking to update prices but not changing descriptions.
    By Paul Heisler in forum General Questions
    Replies: 8
    Last Post: 20 May 2014, 04:51 PM
  2. Bulk update of prices needed - which table to update thru back end?
    By one tall man in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 8 Dec 2013, 11:02 PM
  3. USPS Update Not Showing International Prices
    By glamourdolleyes in forum Addon Shipping Modules
    Replies: 21
    Last Post: 29 Jul 2013, 07:40 PM
  4. v1371 prices are not showing after php update
    By kory007 in forum General Questions
    Replies: 3
    Last Post: 10 Sep 2012, 09:31 PM
  5. Replies: 2
    Last Post: 24 Feb 2011, 04:54 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