Charges - eCart
I have pasted the amended rule but it still does not work. Everything parses okay. I have checked that the $_SESSION['TaxRate'] is being set:
<?php
// Set session variables
$_SESSION['TaxRate'] = 0.19;
echo 'Session TaxRate is '. $_SESSION['TaxRate'];
?>
The code from the dmbc_in_stock_PHP.php is below
//eCart Rule
function WAEC_dmbc_in_stock_SalesTax() {
$totalCharge = 0;
if (true && ((sizeof($this->Items) > 0) && (isset($_SESSION['TaxRate'])))) {
$totalCharge += floatVal("".(($dmbc_in_stock->TotalColumn('TotalPrice') - ($dmbc_in_stock->GetDiscounts()) *1) * $_SESSION['TaxRate']) ."");//Result
}
return WA_eCart_FormatNumber($totalCharge, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule