If this is your first visit, check our documentation. To post, register or login.
Forums / Currencies & Sales Taxes, VAT, GST, etc. / Sales tax not gettig added

Sales tax not gettig added

Started by rbarbour on 13 Oct 2016, 4:12 PM · Views: 5,691

Results 1 to 11 of 11
13 Oct 2016, 4:12 PM
#1
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Sales tax not gettig added

I tried deleting the tax class and it said all the products were linked to it so I'm lost as to why it's not adding sales tax to the orders.

13 Oct 2016, 4:20 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Sales tax not gettig added

When "Tax Included Pricing" is turned off (ie: not an EU VAT shop), tax is added based on:

a) look at all the user-defined Zones in the admin
b) is the customer's shipping/delivery address in one of those zones
c) for each zone, is a tax-class associated with it
d) for each associated tax class, apply its tax rate

Common causes of it not working:
a) the user-defined zones are not actually set up properly. Most-often-missed is assigning specific states for each country
b) tax class not assigned to products (you said you already checked that)

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

13 Oct 2016, 4:49 PM
#3
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Sales tax not gettig added

DrByte:

When "Tax Included Pricing" is turned off (ie: not an EU VAT shop), tax is added based on:

a) look at all the user-defined Zones in the admin
b) is the customer's shipping/delivery address in one of those zones
c) for each zone, is a tax-class associated with it
d) for each associated tax class, apply its tax rate

Common causes of it not working:
a) the user-defined zones are not actually set up properly. Most-often-missed is assigning specific states for each country
b) tax class not assigned to products (you said you already checked that)

a) look at all the user-defined Zones in the admin
United States, New York, NY

b) is the customer's shipping/delivery address in one of those zones
local business, all local orders - no delivery outside 5 miles

c) for each zone, is a tax-class associated with it
1 Taxable Goods New York 8% NY TAX 8.0%

13 Oct 2016, 4:53 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Sales tax not gettig added

What's the sort-order, and other settings, for ot_tax in Admin->Modules->Order Total?

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

13 Oct 2016, 4:56 PM
#5
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Sales tax not gettig added

DrByte:

What's the sort-order, and other settings, for ot_tax in Admin->Modules->Order Total?

vanilla configs

COD Fee ot_cod_fee
Discount Coupon ot_coupon 280
Group Discount ot_group_pricing 290
Gift Certificates ot_gv 840
Low Order Fee ot_loworderfee 400
Shipping ot_shipping 200
Sub-Total ot_subtotal 100
Tax ot_tax 300
Total ot_total 999

13 Oct 2016, 5:06 PM
#6
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Sales tax not gettig added

checkout_payment page

Sales Tax: $0.00

Even changing the config

Display Prices with Tax = True

Does not calculate the tax

13 Oct 2016, 5:09 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Sales tax not gettig added

Tax basis settings in Admin->Configuration->My Store ... set to Shipping?

I just set up a brand new install with demo products. Created a New York zone, added US+New York to it. Created an 8% tax rate, tied to the default Tax Class.
Then attempted checkout using a new york address. Tax shows up fine.

You know better than me what ways the PHP code has been changed on the site. And access to all settings to compare against defaults, even beyond the ones mentioned above..

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

13 Oct 2016, 5:43 PM
#8
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Sales tax not gettig added

DrByte:

Tax basis settings in Admin->Configuration->My Store ... set to Shipping?

I just set up a brand new install with demo products. Created a New York zone, added US+New York to it. Created an 8% tax rate, tied to the default Tax Class.
Then attempted checkout using a new york address. Tax shows up fine.

You know better than me what ways the PHP code has been changed on the site. And access to all settings to compare against defaults, even beyond the ones mentioned above..

It's set to shipping.

No modules installed

Only divs added to template files for design purposes.

13 Oct 2016, 6:09 PM
#9
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Sales tax not gettig added

So, I checked my db and the zones_to_geo_zones zone_id was incorrect

13 Oct 2016, 6:25 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Sales tax not gettig added

Odd. If it's not user-error, then it suggests that there might be duplicates in the zones tables.

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

13 Oct 2016, 6:45 PM
#11
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Sales tax not gettig added

DrByte:

Odd. If it's not user-error, then it suggests that there might be duplicates in the zones tables.

That's what I thought. I've done tax set up many times. It's resolved, I will try to dig deeper to see what the root problem is when more time permits.

Thanks