This requires more testing because I'm not entirely sure what is triggering this bug, but it is repeatable and here is the scenario:
Canadian store with GST zone (all of Canada) and PST zone (just BC) and HST zone (Atlantic provinces).
Store is v 1.3.6. Mods are many, so I ask that someone with an fresh site try it to confirm (I will when I get back from vacation)
Issued a coupon code with a product restriction so it applied to only one item.
Customer (from Quebec, so only GST applies) ordered that item as well as another item, and used the coupon code.
Shipping applied correctly.
Taxes calculated very odd (too low) and I can't figure out why.
BEFORE entering the coupon code, I get this:
Item 1: $221.00
Item 2: $35.00
Shipping: $26.91
Tax (6%): $16.97
Total: $299.88
And that is correct! But after entering the coupon code, I get:
Item 1: $221.00
Item 2: $35.00
Shipping: $26.91
Coupon: -$132.60
Tax (6%): $7.75 <-- Incorrect! Should be $9.02
Total: $158.06 <-- should be $159.33
The tax (and therefor the total) are completely wrong!
It only seems to happen when a coupon is applied, which is restricted to one product, and another product is ordered at the same time. However, I have not thoroughly tested other scenarios to see if it is also a problem with a different set of circumstances.
I have other orders with coupon codes restricted to a certain product... but in each of those cases the customer only ordered that item and nothing else. This is the first time I've had this situation, but I can repeat it.
- Steven
Bookmarks