Deceased
- Join Date:
- Nov 2007
- Location:
- Sunny Coast, Australia
- Posts:
- 3,427
- Plugin Contributions:
- 2
Shopping cart Subtotal not equal Checkout Subtotal (rounding error) with GST/VAT
GoverT:
Solved! (At least for us)
Line 456 of includes/classes reads:
'final_price' => zen_round($products[$i]['price'] + $_SESSION['cart']->attributes_price($products[$i]['id']), $decimals),
It should be without rounding:
'final_price' => $products[$i]['price'] + $_SESSION['cart']->attributes_price($products[$i]['id']),
Then everything is fine! :D
Hope this works for you too frank18!
Thanks G/T - I will revert to the standard code and then apply your suggestion (code looks sort of familiar from older releases).
NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.