Tax not calculating correctly after 1.1.3 update

Started by marshcycle, January 27, 2013, 05:05:44 PM

Previous topic - Next topic

marshcycle

Hello,

When customers select one product, the tax is calculating correctly, but when they select multiple products it calculates the tax based on only the last item/qty added to the cart NOT the sub-total as it should!!

Please help. I'm having to cover the tax differences owed.

Thank you!

abantecart

We are checking...

In 1.1.3 there are additional settings to control tax calculation. I wonder if there is something wrong in the tax and location. Do you have correct tax class sett for your products (the once that are not calculated right)?

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

marshcycle

Well, my products are all set as "Taxable Goods". It is a shopping cart for my small winery and when they place how many of a particular type of wine they want and stick to JUST that wine, taxes are calculated perfectly for my zone which is for Placer County and is 7.5%.

BUT...when they select lower priced wine after they've selected the higher priced wine, the tax is calculated anew for the lesser amount of wine and not added together.

I have posted a screenshot of how my tax rate is configured.

Thank you.

abantecart

Problem is solved. There is a typo in the cart class. :(

Open this file /core/lib/cart.php

Locate line:

if (!isset($taxes[$product['tax_class_id']])) {
$this->taxes[$product['tax_class_id']]['total'] = $product['total'];
$this->taxes[$product['tax_class_id']]['tax'] = $this->tax->calcTotalTaxAmount($product['total'], $product['tax_class_id']);

Replace with:

if (!isset($this->taxes[$product['tax_class_id']])) {
$this->taxes[$product['tax_class_id']]['total'] = $product['total'];
$this->taxes[$product['tax_class_id']]['tax'] = $this->tax->calcTotalTaxAmount($product['total'], $product['tax_class_id']);

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

marshcycle

#4
I located it and replaced it and now I can't even log into my admin panel.

I get this message:

Parse error: syntax error, unexpected T_PUBLIC in /home/content/52/7803852/html/store/core/lib/cart.php on line 390

Please help. cart.php code attached.

Thank you...

abantecart

You did not follow instructions and messed up the code.   ;)
Use attached file to replace file on your cart.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

marshcycle

EXCELLENT...!! Problem solved...!

Thank you VERY much...!

;D

Case closed!!

Forum Rules Code of conduct
AbanteCart.com 2010 -