Tax to only apply to one State
Is there a way to have tax only apply to orders coming from one State, e.g. Minnesota, if so, how would I accomplish this task?
Thanks
Jackie
Is there a way to have tax only apply to orders coming from one State, e.g. Minnesota, if so, how would I accomplish this task?
Thanks
Jackie
the billing state is stored in a session named:
eCartCheckoutForm_state_province
on the tax tab, create a new tax rule using the following trigger:
Bassed on Session variable value:
if the session variable 'eCartCheckoutForm_state_province' has a value of 'MN'
this will cause the tax rule to only if the billing state is Minnesota
Hi Jason,
That worked like a charm!!!
Thanks,
Erick
I cannot get it to work. Here is what I've got. In the ecart object file:
function WAEC_eCart1_SalesTax() {
$totalTax = 0;
if (true && (((isset($_SESSION['eCartCheckoutForm_state_province'])?$_SESSION['eCartCheckoutForm_state_province']:"") == "FL"))) {
$totalTax += ($this->GetTaxableTotal() * .06);//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
Then... on the Checkout Page:
<option value="FL" <?php if (!(strcmp("FL", WA_coalesce(array(WA_getSavedFormValue("CheckoutWizard_Cool_Default","State"),(isset($_GET["invalid"])?ValidatedField("ecarttestconfirmcart","State"):"")))))) {echo "selected=\"selected\"";} ?>>Florida</option>
I know I'm close. By playing around with it a bit, I can get the tax to show either all the time or not at all. Just can't get it to show on the state of FL. Thanks for your help.
the syntax is different for eCart 6 and will need to be hand coded.
change
if (true && (((isset($_SESSION['eCartCheckoutForm_state_province'])?$_SESSION['eCartCheckoutForm_state_province']:"") == "FL"))) {
to:
if (true && (($this->GetTaxableTotal() > 0) && ((isset($_SESSION['WASF_CheckoutWizard_Cool_Default'])?$_SESSION['WASF_CheckoutWizard_Cool_Default']['State']:"") == "FL"))) {
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.