Tax in Power Store 2
Here is the //eCart Rule
function WAEC_WA_Store_Cart_SalesTax() {
$totalTax = 0;
if (true && (($this->GetTaxableTotal() > 0) && ((isset($_SESSION['eCartCheckoutForm_shipping_state_province'])?$_SESSION['eCartCheckoutForm_shipping_state_province']:"") == $GLOBALS['WAGLOBAL_TaxState']) || ((isset($GLOBALS['WAGLOBAL_TaxState'])?$GLOBALS['WAGLOBAL_TaxState']:"") == ""))) {
$totalTax += ($this->GetTaxableTotal() * $GLOBALS['WAGLOBAL_TaxRate']/100);//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
I have a data base which has states_provinces and a column "StateTax" where I have my new tax at .012 but it is not refelecting on current orders. Thank you.