Not sure if this has been adressed before, it seems weird that nobody has noticed. But I had problems with the discount coupon showing the wrong value on a default 1.3.6 shop (display prices with tax set to true).
I am quite sure it's a bug in ot_coupon.php, because $tax appears to hold the absolute tax value and is passed to zen_calculate_tax (which expects a tax percentage I assume).
When I change (in ot_coupon.php):
Code:
if (DISPLAY_PRICE_WITH_TAX == 'true') {
$od_amount['total'] += zen_calculate_tax($od_amount['total'], $tax);
}
To:
Code:
if (DISPLAY_PRICE_WITH_TAX == 'true') {
//$od_amount['total'] += zen_calculate_tax($od_amount['total'], $tax);
$od_amount['total'] += $tax;
}
It shows the correct discount amount including tax (in my case, only done one test until now though)
#######################
Note:
Also the help popup (popup_coupon_help) shows the amounts (coupon value and minimum order amount) excluding tax while it should show including tax. Haven't looked into that yet.
Bookmarks