Just trying to redo an ASP cart into PHP. I am working on some charges. Could you confirm that the ASP rule that I have amended to PHP is indeed correct and will function as expected. The ASP cart name was dmbp and the the PHP is dmbc_in_stock
((WA_eCart_TotalColumn(dmbp, "TotalPrice") - (dmbp_GetDiscounts()) * 1) * Session("TaxRate"))
<?php echo (($dmbc_in_stock->TotalColumn("TotalPrice") - ($dmbc_in_stock->GetDiscounts()) *1) * $_SESSION["TaxRate"]); ?>
When I run a page to see if this works it displays 0.00 even when the cart is populated.
The rule is set to run when number of items in the cart > 0 and $_SESSION["TaxRate"] exists. I have set $_SESSION["TaxRate"] in the code to be 0.19 so the rule should return the TotalPrice * 0.19