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.