Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Site Wide - Change All Product Weights to a Minimum

    Instead of updating hundreds of items individually to a minimum weight is there a trick to doing it site wide?

    Example: all 1oz items become 3oz.

    Thank you in advance.
    Cheers!
    v2.0+

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Site Wide - Change All Product Weights to a Minimum

    SQL:

    Code:
    UPDATE products SET products_weight=3 where products_weight=1;
    ... assuming all your weights are only in oz and NOT in lbs. If you're using another weight formula, change the numbers accordingly.
    .

    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.

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

    Default Re: Site Wide - Change All Product Weights to a Minimum

    Quote Originally Posted by webskipper View Post
    Instead of updating hundreds of items individually to a minimum weight is there a trick to doing it site wide?

    Example: all 1oz items become 3oz.

    Thank you in advance.
    Couple of ways...

    One shot deals would use sql statements.

    Code:
    update products set products_weight=3 where products_weight=1
    Could be entered into the install sql script field provided in admin panel tools. Remember though that weights are entered as either lbs or kgs, so the appropriate conversion factor should be applied to address the weight(s).

    Another is to use a tool such as EasyPopulate or apsona. Those may require other prerequisites to be met to work for you.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: Site Wide - Change All Product Weights to a Minimum

    Thanks for sql patch it worked!
    Cheers!
    v2.0+

 

 

Similar Threads

  1. Site-wide pricing change/Set profit margin
    By Fait in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 4 Dec 2010, 05:17 PM
  2. tpl_categories.php : any way to show all subcategories site-wide?
    By inthecomputer in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 18 Nov 2008, 11:41 PM
  3. hide all weights through out the site.
    By kitcorsa in forum General Questions
    Replies: 2
    Last Post: 27 May 2008, 02:34 PM
  4. Change the site wide email address
    By LadyBubs in forum General Questions
    Replies: 4
    Last Post: 30 Jan 2007, 10:16 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