Forums / Currencies & Sales Taxes, VAT, GST, etc. / Only taxes the first item in cart...

Only taxes the first item in cart...

Locked

Views: 1,461

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
30 Jun 2008, 2:43 AM
#1
avansant avatar

avansant

Zen Follower

Join Date:
Aug 2004
Posts:
122
Plugin Contributions:
0

Only taxes the first item in cart...

Ever since upgrading to 1.3.8 I have what seems to be a unique problem... when someone adds an item to their cart, and they are from Maryland, it charges them state tax just like it should... just like I have it setup. BUT if they add ANOTHER item to their cart, the tax doesn't change. It only ever taxes the first item...

I've double checked all the tax setup info to be sure nothing was shifted after the upgrade but it all looks the same... I've gone through the check list... I've made sure they are all "taxable goods" items... I've deleted my MD setup for zones and rates and redid them... nothing seems to fix it!

In short, add a $10 item to cart and it charges 60 cents... then add another 1,2-200 items and the tax never changes.

Any thoughts?

30 Jun 2008, 2:44 AM
#2
avansant avatar

avansant

Zen Follower

Join Date:
Aug 2004
Posts:
122
Plugin Contributions:
0

Re: Only taxes the first item in cart...

Whoops.. forgot to mention the store...
http://www.easternperformance.com

30 Jun 2008, 1:44 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,668
Plugin Contributions:
0

Re: Only taxes the first item in cart...

From your Admin, uninstall and reinstall the tax module, does that fix it?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

30 Jun 2008, 2:56 PM
#4
avansant avatar

avansant

Zen Follower

Join Date:
Aug 2004
Posts:
122
Plugin Contributions:
0

Re: Only taxes the first item in cart...

Sadly, no. Is it supposed to tax each thing and then add up, or just apply to the total? For this to happen I imagine it is doing it one at a time and then adding, but it never gets to the adding part...

If I was going to replace a bunch of files from a clean download to try and fix this issue, is there a particular group of files that would be a good place to start? I might just have some file that was corrupted somehow but for fear of losing mods I don't even remember doing anymore, I'd like to replace as little as possible...

A

30 Jun 2008, 7:07 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Only taxes the first item in cart...

The main calculating logic for taxes at the per-product level is done in /includes/classes/order.php ... where it presently calculates tax for each item individually.
But, if you've got numerous other addons installed, one of those could be adversely affecting things as well.
A list of all your addons would be useful information ...

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

30 Jun 2008, 8:47 PM
#6
avansant avatar

avansant

Zen Follower

Join Date:
Aug 2004
Posts:
122
Plugin Contributions:
0

Re: Only taxes the first item in cart...

Thank you for pointing me in the right direction... I actually didn't have too many add-ons at all with this store, but when I was having some issues with having a lot of options slowing down processing one of my programmers had edited query factory for me a bit to help processing. This helped the server drag quite a bit but it caused various issues here and there.. turns out this was one no one had noticed. When I replaced the whole "classes" directory with a clean one this was removed and all was well again. I guess I'll need him to tweak again for taxes!

Thank you!

where the changes were made. Six lines in all, lines
90,91,92,93,205,211.

// jag20080324 Next four lines implement sql memory caching
global $sqlMemoryCache;
if ($sqlMemoryCache{$zf_sql}) {
return $sqlMemoryCache{$zf_sql};
} else {

    // jag20080324 Next one line implements sql memory caching
    $sqlMemoryCache{$zf_sql}=$obj;

// jag20080324 Next curly brace closes implementation of sql memory
caching
}