Zen Follower
- Join Date:
- Aug 2007
- Posts:
- 116
- Plugin Contributions:
- 0
Shopping cart Subtotal not equal Checkout Subtotal (rounding error) with GST/VAT
I have a webshop in Australia, where we use GST-included in our prices. 10%
I'm getting a rounding error on checkout subtotal. Shopping Cart product totals and Subtotal are calculated correctly but Checkout and subsequent order Subtotals are not.
Example:
Price 1.181 * Tax 0.10 = 1.2991
Rounded = 1.30
- 10 units
Subtotal = 13.00
Shopping Cart is calculating as above, which is correct.
On checkout (and subsequent confirmed order), sub total is calculated to 12.99, which only makes sense if rounding and/or tax was calculated on subtotal at the checkout/order total stage.
New, very modded Zen 1.5 site.
Possible suspects; Store Credits and Rewards Points Module, Super Orders 4.0, Edit Order 4.1.2 or some remnant of uninstalled Fast Easy Checkout. More likely; Stupid GAM user error somewhere
I've searched the forums and threads on this matter and above add-ons and could not find anything related. Some similar issues but different and normally explained/resolved. I've spent hours now poking through my php files but I just don't understand it well enough to look in the right places I think. I see the code for the Shopping Cart, which I can interpret and identify is calculating correctly. But no idea where the actual calculations are occurring for the Order Total section of the Checkout, and what is saved for the order.
If someone could at least point me in the right direction I'm likely to find the culprit and fix.
Cheers
GAM - the frazzled :frusty:
ps. Went live 4:30am Tuesday and mostly sleepless since :wacko:... gammods[dot]com[dot]au store