Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Currencies & Sales Taxes, VAT, GST, etc. / shipping tax calculation error after upgrade to v155

shipping tax calculation error after upgrade to v155

Locked

Started by earmsby on 20 Jul 2016, 6:45 PM · Views: 5,024

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Jul 2016, 6:45 PM
#1
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Post #1 by earmsby

Hi,

I just recently completed an upgrade for a client from v.1.5.4 to 1.5.5a. Everything seems totally fine except a weird little problem that I can't seem to track down. The problem is that tax should be calculated including the shipping cost but upon final checkout, the tax doesn't include this. The correct amount of tax shows during the checkout process but not at the final confirmation and not the amount that actually gets recorded with the order (charged to PayPal or Auth.net). Here's an example:

I place an item for $100 in my cart and begin checkout.
I select a shipping address to which sales tax applies.
order totals show as:

item - $100
shipping - $10.95
tax - $9.85 [tax rate is 8.875%]

This same total appears throughout the checkout steps until the final order review step. Then when I click the button to confirm, suddenly the tax recalculates and only shows and charges $8.88 which does not include the shipping.

I don't know if this is a bug in this version or if it's a stray line of code that got lost or changed when I copied modifications during the upgrade. I didn't have any modifications to this particular functionality in the previous version and the tax definitely calculated correctly pre-upgrade. Maybe someone can point me to which file and where I should look for the cause of the problem.

Thanks in advance!

Ellie Armsby

20 Jul 2016, 8:34 PM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

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

21 Jul 2016, 6:21 PM
#3
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Post #3 by earmsby

Thanks Dr. Byte. I'll give that a try and see if it solves the problem. I suspect it will since my problem seems to match very closely (or even completely) to the those described in that thread.

Ellie Armsby

21 Jul 2016, 6:32 PM
#4
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Post #4 by earmsby

Just confirming that yes, moving the one line of code suggested by Dr, Byte solved the problem. :):clap:

Ellie Armsby