Flat Discount and State Tax?
I've created a flat rate discount. When I apply the discount, the State Tax disappears for some reason if the discount amount exceeds the sub-total.
Here's my Discount Rule:
//eCart Rule
function WAEC_ssdcart_GiftCertificate() {
$totalDiscount = 0;
if (true && ((sizeof($this->Items) > 0) && ((isset($_SESSION['giftCode'])?$_SESSION['giftCode']:"") == $_SESSION['giftName']) && (time() >= strtotime($_SESSION['giftstartDate'])))) {
$totalDiscount += $_SESSION['giftPrice'];//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule