Hi Eric,
Thanks for the reply. Here is the code
function WAEC_eStorex_Percentage() {
$totalDiscount = 0;
if (true && (((isset($_SESSION['ispercentage'])?$_SESSION['ispercentage']:"") == "1"))) {
$totalDiscount += ($this->TotalColumn("TotalPrice") * $_SESSION['discountvalue']);//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
The Session called 'discountvalue' has a value of 0.10
Cheers
Ian