If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / Sales tax is showing as $0.00 in checkout screens 2 & 3

Sales tax is showing as $0.00 in checkout screens 2 & 3

Started by evan_ausman on 29 Jan 2013, 6:13 AM · Views: 1,075

Results 1 to 8 of 8
29 Jan 2013, 6:13 AM
#1
evan_ausman avatar

evan_ausman

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Post #1 by evan_ausman

We recently upgraded to zen cart 1.5.0 from 1.3.8h (modified). We have one zone setup for California. When we place an order to be sent to a California address, it shows the 'CA Sales Tax' line in the checkout screen 2 & 3, but shows $0.00 instead of the correct tax. This used to work in zen cart 1.3.8h.
We have changed the setting to 'display prices with taxes' and that works to include the tax for each line item, but we want to have the taxes show in the separate line item, as it used to do in the previous version of zen cart. Something in the code is not referencing the sales tax for the checkout properly.

Does someone have a fix, or know which file to look in and where in the file to look for the calculation for the 'tax' line in the checkout screens (the taxes are also not being sent to Authorize.net).

I have seen a number of posts regarding sales tax issues, so hopefully someone has an answer, or can point me to the file and the code, so I can begin to troubleshooting the issue.

29 Jan 2013, 2:13 PM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #2 by rodg

Do you have the 'Tax' enabled in your modules->order_total settings?

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

29 Jan 2013, 10:38 PM
#3
evan_ausman avatar

evan_ausman

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Post #3 by evan_ausman

Yes, the 'tax' is enabled. As I said it is applying the tax if I select 'display prices with taxes'.

30 Jan 2013, 3:58 AM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

Evan.Ausman:

We recently upgraded to zen cart 1.5.0 from 1.3.8h (modified). We have one zone setup for California. When we place an order to be sent to a California address, it shows the 'CA Sales Tax' line in the checkout screen 2 & 3, but shows $0.00 instead of the correct tax...

We have changed the setting to 'display prices with taxes' and that works to include the tax for each line item, but we want to have the taxes show in the separate line item ...

In my fresh install of Zen Cart v1.5.0, which has "Display taxes included in prices" set to false (which is the normal setting for any US store), when I set up a tax Zone to "california", and specifically add US:California to that zone's definition, and then set a tax rate (of 10% for JUST A TEST) with that zone and the tax class assigned to a product, then when I add that product to my shopping cart and go thru checkout with a California address, I see:
Subtotal: $25.00
Tax: $2.50
Shipping (Flat rate): $2.00
Total: $29.50

... which obviously calculates the tax and adds it in using the normal order-total amounts, finally adding it all up to the grand total correctly.

That's without any customizations, nor any plugins, nor any code alterations, and no other changes to admin settings, all based on a brand new install.

What's different between your site and my basically virgin site that would be causing yours to behave differently? What exact steps can I take with my site to consistently recreate your symptoms every time? Therein lies the key to fixing your problem.

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

31 Jan 2013, 7:31 PM
#5
evan_ausman avatar

evan_ausman

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Post #5 by evan_ausman

We set the 'Display prices with taxes' and the taxes were added to the items when the items in the store were browsed or added to the shopping cart.

We are trying to isolate the code file that deals with adding and displaying the taxes in the checkout process starting on 'Checkout page 2 of 3'.

Do you know what the file name is that manages this and where the code is that is supposed to add up the taxes? This seems to be problem; the tax field does not seem to be referenced properly.

We can do further debugging, but need to know where to look.

31 Jan 2013, 7:40 PM
#6
drbyte avatar

drbyte

Sensei

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

Post #6 by drbyte

I'm trying to understand why the code works fine for 100,000 other websites but not yours.

How has your site's code been altered?

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

31 Jan 2013, 8:28 PM
#7
evan_ausman avatar

evan_ausman

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Post #7 by evan_ausman

You are right!!
This is a modified web site that we are trying to maintain and recently upgraded from Zen Cart 1.3.8h (modified) to Zen Cart 1.5.0.

  • If we have 'Display prices with tax' enabled, it does show it correctly throughout the entire web site. This is how we know the tax rate is set properly and being applied, but not listed separately.

  • We have the California tax calculation set properly

  • We have 'Display prices with tax' disabled so we can get the taxes to display as a separate line item in the checkout. We want to be able to see the total taxes as a separate line item in the checkout screens, as we did in Zen Cart 1.3.8h.

  • We try to order as a customer in California, and the tax shows as ' CA Sales Tax: $0.00' on 'Checkout 2 of 3' and 'Checkout 3 of 3' pages.

We just need to know what the file name is that manages the tax calculation, for the tax break-out in the 'Checkout screen 2 of 3' and 'Checkout screen 3 of 3'.

1 Feb 2013, 4:08 AM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #8 by rodg

Evan.Ausman:

We just need to know what the file name is that manages the tax calculation, for the tax break-out in the 'Checkout screen 2 of 3' and 'Checkout screen 3 of 3'.

If you look at the URL displayed in your webbrowser, it appears that screen#2 = checkout_payment, and screen#3 = checkout_confirmation.

These files are both located in the /includes/modules/pages folder, BUT, these pages only handle the output display, the actual tax calculations are performed by the /includes/functions/functions_taxes.php file and are used throughout all pages of the site

There may or may not be other files involved. Perhaps if you could provide the URL to your store we may be able to offer additional advice/suggestions.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.