Jump to content


Guest kjverrette

Recommended Posts

Guest kjverrette

Taxes are calculating right when more than one item in cart, any solutions anyone else having this problem

thank you

for any replies

Link to comment
Share on other sites

I found this in the bug section and it worked.

It was posted by Tanner (Meltingfire)

Tax is currently calculated like:

if($config['priceIncTax']==0 && $taxCustomer==1){ $lineTax = ($product[0]['percent'] / 100) * $subTotal; $tax = $tax + $lineTax; }

and since you calculate a "lineTax" for a specifik item, based on subTotal you will include the "total" amount up to that item every time giving it a much higher tax.

Ex. Item1 gets tax for Item1 Item2 gets tax for Item1+Item2 Item3 gets tax for Item1+Item2+Item3

it should be

if($config['priceIncTax']==0 && $taxCustomer==1){ $lineTax = ($product[0]['percent'] / 100) * ($price * $quantity); $tax = $tax + $lineTax; }

Good Luck

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...