Zen Cart Logo
Forums / Currencies & Sales Taxes, VAT, GST, etc. / How to apply a tax to all items?

How to apply a tax to all items?

Locked

Views: 3,500

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
13 Mar 2009, 7:38 PM
#1
mkordonowy avatar

mkordonowy

New Zenner

Join Date:
Feb 2009
Posts:
11
Plugin Contributions:
0

How to apply a tax to all items?

Is there any way to apply a tax to each item without having to go into every product??

13 Mar 2009, 9:01 PM
#2
mkordonowy avatar

mkordonowy

New Zenner

Join Date:
Feb 2009
Posts:
11
Plugin Contributions:
0

Re: How to apply a tax to all items?

I am having problems setting up a tax on existing stock. In the process of re-setting my account, I deleted the zone in which all of our stock set its tax to. I remade the zone, and realized only later that this was why the zone was failing to be taxed.

Does anyone have a way to apply a tax to each item in all categories? This would be only one zone (for instate tax) yet applies to all items. Help?? Thanks a lot in advance

-Matt

14 Mar 2009, 4:12 AM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,184
Plugin Contributions:
0

Re: How to apply a tax to all items?

Mkordonowy:

Is there any way to apply a tax to each item without having to go into every product??

Mk,
Good question...

I use Navicat

  1. a killer program to access the database tables and edit very quickly
  2. you would edit the table called
  3. products
  4. go to the heading products_tax_class_id
  5. Change from 0 to 1
  6. all the way down
  7. very simple and easy to do
  8. Google: Navicat 8 lite for MySQL
25 Mar 2009, 3:44 PM
#4
mkordonowy avatar

mkordonowy

New Zenner

Join Date:
Feb 2009
Posts:
11
Plugin Contributions:
0

Re: How to apply a tax to all items?

Haredo:

Navicat is a success, thank you so much!

Following the steps, I was able to change the tax on all 800 items within 5 minutes. Pretty great.

Thanks,
Matt

25 Mar 2009, 3:58 PM
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,184
Plugin Contributions:
0

Re: How to apply a tax to all items?

Mk,
You are most welcome, glad that Navicat and I could assist you with your problem...

25 Mar 2009, 4:40 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: How to apply a tax to all items?

Guess you don't want to know the command, after backing up your database, to change all products_tax_class_id from 0 to 1 can be done in the Tools ... Install SQL Patches ... with the command:

UPDATE products SET products_tax_class_id = XX;

where XX is the value you want to use for the tax class id ... :cool:

25 Mar 2009, 4:53 PM
#7
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,184
Plugin Contributions:
0

Re: How to apply a tax to all items?

Ajeh,
Way too sweet, Thanks for the information and knowledge on how to accomplish this task in less time...

25 Mar 2009, 5:18 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: How to apply a tax to all items?

It is a handy one ... :smile:

phpMyAdmin or Navicat are very handy for other types of changes ... so not a bad alternative ... :cool:

31 Dec 2009, 9:15 PM
#9
paperthreads avatar

paperthreads

Zen Follower

Join Date:
Sep 2006
Posts:
142
Plugin Contributions:
0

Re: How to apply a tax to all items?

MUCHAS GRACIAS!

I had to change my tax class on over 3000 products from none to Taxable! It took me longer to back up the database than to input the SQL patch!

Super Awesome, as I was worried I wouldn't be able to find a quick way to do this!

BTW, I searched "changing tax class on all products" and couldn't find anything useful, by a fluke, I found this thread and read through it, otherwise, I wouldn't have found this little tip!

31 Dec 2009, 9:47 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: How to apply a tax to all items?

Glad that this was able to help you, thanks for the update! :smile:

3 Jan 2010, 10:46 PM
#11
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: How to apply a tax to all items?

Hello,
I am trying to do the same (1.3.7 and 1.3.8)- To set tax to all products. Now I have to none.

First I did following:
"Catalog -> Product Types -> (choose a product type) -> Edit Layout -> Product Price Tax Default changed to** 1**

Than, I am using "SQL Query Executor" and type in window, where it says "Enter the query to be executed:" following combination (one at a time):

UPDATE products SET products_tax_class_id = 01;

or

UPDATE products SET products_tax_class_id = 1;

or

UPDATE products SET products_tax_class_id =01;

or

UPDATE products SET products_tax_class_id =1;

Than I am going to product editor and in the field "Tax Class" there is still** -none-**

Howevere if I manually select arror near it I can set State sale tax.

Do I do anythig wrong? What XX has to replaced with?

How would I know if remedy works?

Thanks, for respond in advance.

4 Jan 2010, 12:38 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: How to apply a tax to all items?

You need to get the id value for your tax ... edit a Product Manually and set it to taxed ... then look in the products_table to see what the value is that is set for the:
products_tax_class_id

4 Jan 2010, 1:13 AM
#13
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: How to apply a tax to all items?

Thanks for reply.

So far, I did not have a need to access products_table.

Do I look in products_table from C-panel or Zen Cart Admin?

4 Jan 2010, 3:57 AM
#14
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: How to apply a tax to all items?

Please, disregard previous questions.

I did figure out how to do it.

For others, like myself, who are from "mechanical" world here it is how to do it:

  1. Go to product edit area in ZEN CART Admin and change manually first product to be taxed.

  2. Go to your C-panel and click on **phpMyAdmin ** icon.
    This will take you to the next page.

  3. In the upper left conner there are links to the data base. In my case it was called _ZC1 (Zen Cart 1?). Click on this link, you will get another page.

  4. On the very left side is a long column with names/links of sub tables. Find the one called **zen_products **. Click on this link.

  5. It will open on the same page this table. Scroll to the right to find column with title products_tax_class_id

  6. You will see that 1-st product (which was edited in 1) has different** products_tax_class_id**
    (in my case 2) than all others (1).

  7. Next, go back to Zen Cart Admin, Tools, ... Install SQL Patches
    and type in window, where it says "Enter the query to be executed:" following Code:

UPDATE products SET products_tax_class_id = 2;

Click Send

This should make it.

If this did not work, please let me know.

4 Jan 2010, 4:30 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: How to apply a tax to all items?

Thanks for the update and posting that in your case, the tax id value was 2 rather than the common value of 1 ...

Also, thanks for the detailed steps on how you were able to determine the products_tax_class_id from the products table via phpMyAdmin through your Control Panel of cPanel ... :smile: