Forums / Setting Up Categories, Products, Attributes / Changing Weights of All Products in a Category

Changing Weights of All Products in a Category

Locked

Started by mrtechnique on 10 Jul 2008, 8:37 PM · Views: 1,175

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Jul 2008, 8:37 PM
#1
mrtechnique avatar

mrtechnique

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

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.

11 Jul 2008, 4:47 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

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!]
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!

11 Jul 2008, 3:56 PM
#3
mrtechnique avatar

mrtechnique

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

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.php?main_page=product_info&cPath=65_66_69&products_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.

11 Jul 2008, 4:03 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

11 Jul 2008, 4:09 PM
#5
mrtechnique avatar

mrtechnique

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

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'?

11 Jul 2008, 4:19 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

11 Jul 2008, 6:57 PM
#7
mrtechnique avatar

mrtechnique

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

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.