Forums / Currencies & Sales Taxes, VAT, GST, etc. / Bulk edit products to include tax class?

Bulk edit products to include tax class?

Views: 3,139

Results 1 to 6 of 6
22 Feb 2009, 8:06 PM
#1
crosswithyou avatar

crosswithyou

New Zenner

Join Date:
Dec 2008
Posts:
28
Plugin Contributions:
0

Bulk edit products to include tax class?

Hi. When I initially added my products, I did not specify a tax class. Is there a way to bulk define products' tax classes? ...Or do I have to go through each product one-by-one and edit?

22 Feb 2009, 8:15 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Bulk edit products to include tax class?

Backup your database first ... then you can run this SQL command:

UPDATE products SET products_tax_class_id = XX;

where XX is the value you wish to use for all of your products ...

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!

22 Feb 2009, 8:22 PM
#3
crosswithyou avatar

crosswithyou

New Zenner

Join Date:
Dec 2008
Posts:
28
Plugin Contributions:
0

Re: Bulk edit products to include tax class?

That did the trick. Thank you so much!!

22 Feb 2009, 8:41 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Bulk edit products to include tax class?

You are most welcome ... thanks for the update that this worked for you to reset all of the tax class id values correctly on all of your Products ... :smile:

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!

16 Feb 2011, 4:27 AM
#5
keezee avatar

keezee

New Zenner

Join Date:
Jun 2010
Posts:
38
Plugin Contributions:
0

Re: Bulk edit products to include tax class?

Hello all -

I tried the solution found here to process a bulk tax class update, but it fails.

I am on v1.3.9d and would like a SQL query that can do the whole process easily.

Our site has been up for a while now and I forgot to configure state taxes... We have thousands of products now and I could not possibly update them all manually.

Help is much appreciated!

I tried:

"UPDATE products SET products_tax_class_id = XX;"

16 Feb 2011, 6:12 PM
#6
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Bulk edit products to include tax class?

Did you miss Ajeh's comment under the code snippet? "where XX is the value you wish to use for all of your products"...meaning the id of the tax class

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !