Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2012
    Location
    NJ
    Posts
    41
    Plugin Contributions
    0

    help question Mass Update Weight

    I'm a little skittish when it comes to using an SQL query to attempt this and I'm not sure I fully understand some of the ways this can be manipulated through the admin console (if in fact it can be done) name/value manager. I'm looking to see if there is a way to mass change/update the Product Shipping Weight is some fashion. Whether it's by category ID or some other means which I can then go back in and manually change the odd item here and there.

    Any help appreciated.
    I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
    -- Christian Slater

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,580
    Plugin Contributions
    88

    Default Re: Mass Update Weight

    In what manner do you want to update a product's shipping weight? Set all products in a specific "master" category to have a specific weight? Do the products have attributes that add or subtract weight?

  3. #3
    Join Date
    Mar 2012
    Location
    NJ
    Posts
    41
    Plugin Contributions
    0

    Default Re: Mass Update Weight

    If I can update based on a category that already exists or if I can group them to a new category. Basically all of my action figures/toys I'd like to mass update the weight to 1lb.

    https://www.mrcollectoronline.com/in...index&cPath=58
    I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
    -- Christian Slater

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,580
    Plugin Contributions
    88

    Default Re: Mass Update Weight

    Again, this query is based on a product's master_categories_id. Be sure to make a database backup before running!

    To update all products' weight to 1 pound in each of the sub-categories of the Toys category (categories_id 58), you can run the following SQL in the admin's Tools :: Install SQL Patches:
    Code:
    UPDATE products SET products_weight = 1 WHERE master_categories_id IN (61, 62, 81, 78, 59, 60, 79, 68);

  5. #5
    Join Date
    Mar 2012
    Location
    NJ
    Posts
    41
    Plugin Contributions
    0

    Default Re: Mass Update Weight

    Thank you for this, seems almost too easy. So if I'm understanding you correctly I can either do all the toys using 58 or get a little more granular by using the actual subcategories (61, 62, 81, 78, 59, 60, 79, 68) in fact I believe some of those subs have additional categories. This is beyond helpful!
    I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
    -- Christian Slater

  6. #6
    Join Date
    Mar 2012
    Location
    NJ
    Posts
    41
    Plugin Contributions
    0

    Default Re: Mass Update Weight

    Sorry one additional question, would a single category need to be in ()?

    Example:
    Code:
    UPDATE products SET products_weight = 1 WHERE master_categories_id IN 127
    Quote Originally Posted by lat9 View Post
    Again, this query is based on a product's master_categories_id. Be sure to make a database backup before running!

    To update all products' weight to 1 pound in each of the sub-categories of the Toys category (categories_id 58), you can run the following SQL in the admin's Tools :: Install SQL Patches:
    Code:
    UPDATE products SET products_weight = 1 WHERE master_categories_id IN (61, 62, 81, 78, 59, 60, 79, 68);
    I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
    -- Christian Slater

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,580
    Plugin Contributions
    88

    Default Re: Mass Update Weight

    It would or, for a single category, you could use
    Code:
    UPDATE products SET products_weight = 1 WHERE master_categories_id = 127;

  8. #8
    Join Date
    Apr 2019
    Location
    Newport Beach, CA
    Posts
    74
    Plugin Contributions
    0

    Default Re: Mass Update Weight

    Cool site!

    When I click on a product image it creates a tiny 2nd browser window with the following message:

    "The page isn’t redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies."

    FYI - I would actually buy some items but the images are so small I can't see any detail.

 

 

Similar Threads

  1. v151 Mass product weight update
    By sports guy in forum General Questions
    Replies: 8
    Last Post: 25 Jan 2015, 09:52 PM
  2. Replies: 5
    Last Post: 16 May 2009, 09:53 AM

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