NY Shipping Rule Not Working
Hi I have created a shipping rule to charge tax in only NY
However when on the checkout page after filling out a NY address it does not work.
My session variable is named svstate; this is on the checkout.php page:
<?php
@session_start();
if(!isset($_SESSION["svstate"])) {
$_SESSION["svstate"] = "".((isset($_POST["State"]))?$_POST["State"]:"") ."";
}
?>
Here is the eCart Rule:
//eCart Rule
function WAEC_eCart1_SalesTax() {
$totalTax = 0;
if (true && (($this->GetTaxableTotal() > 0) && ((isset($_SESSION['svstate'])?$_SESSION['svstate']:"") == "NY"))) {
$totalTax += ($this->GetTaxableTotal() * 0.008125);//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
I have attached the files in the event you need, please let me know what I have done wrong
Thanks
Note: 3/28/2015
I tried this solution but it did not work for me so I will await your reply
http://www.webassist.com/forums/posts.php?id=35117