Sales Tax Calculation in eCart 6
Hi,
I have problems with eCart6 calculating / displaying sales tax, in our case in North Carolina.
Here is what I have in the Tax Tab (eCart Merchandising Rule) of the eCart object:
Taxable total > 0
AND If Session variable eCartCheckoutForm_state_province == NC
(image attached)
The rule in my cart_PHP.php is:
function WAEC_TTC_SalesTax() {
$totalTax = 0;
if (true && (($this->GetTaxableTotal() > 0) && ((isset($_SESSION['eCartCheckoutForm_state_province'])?$_SESSION['eCartCheckoutForm_state_province']:"") == "NC"))) {
$totalTax += ($this->GetTaxableTotal() * 0.0725);//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
Any ideas what I might doing wrong here?
Thanks a lot.
Joerg