Tax rule not working...
I have an active tax rule in the cart object to charge MD sales tax if the shipping address is in MD. This rule is not firing off at all.
I had additional rules for government exempt cards. We had a customer from MD purchase an item, but no tax was charged. We verified that the card was not govt issued, and I began stripping out the rules to get to simple MD tax.
Old rule:
function WAEC_shoeCart_MDTax()
totalTax = 0
if (true AND ((cStr(Session("eCartCheckoutForm_shipping_state_province")) = "MD") AND (cStr(Session("left_4")) <> "XXXX") AND (cStr(Session("left_4")) <> "XXXX") AND (cStr(Session("left_4")) <> "XXXX") AND (cStr(Session("left_4")) <> "XXXX") AND (cStr(Session("left_4")) <> "XXXX"))) then
totalTax = totalTax + (WA_eCart_TotalColumn(shoeCart, "TotalPrice") * cDbl(.06))'Result
end if
WAEC_shoeCart_MDTax = WA_eCart_FormatNumber(totalTax, shoeCart.ForceDecimalsC, shoeCart.DecimalPlacesC)
end function
New Rule (still not working):
function WAEC_shoeCart_MDTax()
totalTax = 0
if (true AND ((cStr(Session("eCartCheckoutForm_shipping_state_province")) = "MD"))) then
totalTax = totalTax + (WA_eCart_TotalColumn(shoeCart, "TotalPrice") * cDbl(.06))'Result
end if
WAEC_shoeCart_MDTax = WA_eCart_FormatNumber(totalTax, shoeCart.ForceDecimalsC, shoeCart.DecimalPlacesC)
end function
It is still not working.
The click chain in my cart is checkout (enter payment info) > confirm (submit to Authorize.Net) > success.
Let me know if you need any more info from me...