Sales Tax problem
After much trial and error and lots of help from Jason, the cart is up and running, and my client received his first order with hours of it going live, so thanks again for your help.
HOWEVER it is doing something he does not want it to do. It adds sales tax to every order, from all over the country, not just the state where he's based (Massachusetts). When I used the Checkout Wizard it skipped the Sales Tax part (sort of jumped past it, without giving me any options). I'm using Authorize.net in SIM mode.
This is what I have for code:
//eCart Rule
function WAEC_BillCart_SalesTax() {
$totalTax = 0;
if (true && (($this->GetTaxableTotal() > 0) && ((isset($_SESSION['eCartCheckoutForm_shipping_state_province'])?$_SESSION['eCartCheckoutForm_shipping_state_province']:"") == "MA"))) {
$totalTax += ($this->GetTaxableTotal() * 0.0625);//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule