Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2008
    Posts
    31
    Plugin Contributions
    0

    Default Changing Weights of All Products in a Category

    Is there a way to set all of a category's products weights to the same weight after the products have been added or do I have to manually set them one by one? Thank you in advance.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Weights of All Products in a Category

    If all of the Products have the same master_categories_id then this is easily done by running in the Tools ... Install SQL Patches ...

    PHP Code:
    UPDATE products SET products_weight XX.XX WHERE master_categories_id YYY
    This works where XX.XX is the weight you want and YYY is the master_categories_id ...

    If you do not use Linked Products, then the master_categories_id will match the categories_id of the Product ...

    If you do use Linked Products, then the master_categories_id should match the categories_id that "owns" the Product ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Changing Weights of All Products in a Category

    Thanks! That definitely helped. Now how can I do the same for a product's attributes? I want to change the weights for the attributes in a category? For example, at this URL:

    http://nealsmithdesigns.com/index.ph...roducts_id=185

    I want to be able to add an additional 4 lbs. for if the customer adds an unfinished or finished corbel from the drop down box. I want to do this to all products in this products' category. Thanks again.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Weights of All Products in a Category

    Attributes are not quite as easy ...

    Do the same pair(s) of options_id and options_values_id need to be changed everywhere?

    That could be done globally but to do them by category in a simple manner does not exist as there isn't a direct relationship to the products_attributes table and the categories table ...

    Another way might be to look at the Attributes Controller and the Copy command for Product to Product or Product to Category of Products if the prices and weights are the same ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Mar 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Changing Weights of All Products in a Category

    Also, how can I set it up to where yes is selected for 'product quantity box shows'?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Weights of All Products in a Category

    Do you mean on the Products for the product _info or for the Product Listing?

    NOTE: Products with Attributes do not show a quantity box or add to cart on the Product Listing ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Mar 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Changing Weights of All Products in a Category

    Once a product is clicked on, not from the product listing page. For example, when a product has attributes, you have to click on the 'more info' link. I would hate to have to go to each individual product and set the choice to 'yes' for every product.

 

 

Similar Threads

  1. Show all products in category when top category is clicked
    By Graphic Content in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 21 Oct 2010, 07:36 AM
  2. Not all products are listed in category 'all products'
    By jcdk in forum Basic Configuration
    Replies: 3
    Last Post: 15 Feb 2010, 09:07 AM
  3. resetting Master Category ID for all products in a category = HTTP 406 error!
    By bodyjewelrystores in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 18 Nov 2009, 04:25 AM
  4. Displaying All Products in All Subcategories of a Parent Category
    By rge in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 29 Aug 2009, 08:51 AM
  5. Changing name of special offers & All Products in category box
    By KoboltBlue in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Nov 2008, 02:19 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