Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22
  1. #21
    Join Date
    Apr 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: mass price change for all products in a specific category

    Quote Originally Posted by mc12345678 View Post
    Something "like" but different. In that case would AND the two criteria.
    Code:
    UPDATE products SET products_price = products_price * 1.01 WHERE master_categories_id = 79 AND products_price > 300.00;
    If you wanted to modify additional fields (not just to update products_price), the field along with assignment would be separated by a comma.
    Thanks so much for the help! I ran the script, and said that it ran successfully - but no change in price in the effected category or appropriate product...Even after refreshing or running the price update tool...Any ideas?

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

    Default Re: mass price change for all products in a specific category

    Quote Originally Posted by AquaticAddiction View Post
    Thanks so much for the help! I ran the script, and said that it ran successfully - but no change in price in the effected category or appropriate product...Even after refreshing or running the price update tool...Any ideas?
    Well, you said that you wanted to specify a specific category in which to make the change(s). The use of master_categories_id does not target all product "shown" in a category, but instead those that have a base assignment to that category. This means that product linked to the category are not affected.

    If you are in phpMyAdmin or a similar database accessing tool you could run a select query to confirm which product meet the criteria or even part of the criteria (e.g. The master_categories_id)
    Code:
    SELECT * FROM products WHERE master_categories_id = 79;
    This will display all of the information in the products table for each product that is assigned to master_categories_id of 79. I suspect that the product in question is not present in the list.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Replies: 4
    Last Post: 23 Feb 2014, 09:39 PM
  2. Replies: 7
    Last Post: 29 Jul 2011, 08:37 PM
  3. Replies: 7
    Last Post: 17 May 2011, 02:00 PM
  4. Login for price on specific products
    By 00Goat in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 20 May 2009, 05:03 AM
  5. When a specific Attribute is used - change price to "call for price"?
    By PaulRiedel in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 4 Nov 2007, 02:34 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