tax applied if item is taxable and in a specific state
Hi Ray,
I have a tax setup that is partially working.
I have a trigger set for a specific column value of "taxable" is 1.
This would apply the .085 tax.
I also need it to based on the state value of SC.
I add the trigger:
AND Session variable WASF_CheckoutWizard_NewFromBlank_Default = SC
but then it does not apply the tax now matter what state or items or in the cart.
//eCart Rule
function WAEC_eCart1_salestax2() {
$totalTax = 0;
if (true && (($this->ConditionalTotal("Quantity", "taxable", "1") > 0) && ((isset($_SESSION['WASF_CheckoutWizard_NewFromBlank_Default'])?$_SESSION['WASF_CheckoutWizard_NewFromBlank_Default']:"") == "SC"))) {
$totalTax += ($this->ConditionalTotal("TotalPrice", "taxable", "1") * .085);//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
What am I missing?
thx
Eric