Sorry about that Jason. The files are attached. I have managed to get it to calculate correctly but this involved changing the GetTaxableTotal() function in WA_eCart_Definition_PHP.php from:
function GetTaxableTotal() {
$taxTotal = 0;
$taxTotal = $this->TotalColumn("TotalPrice");
$taxTotal -= $this->GetDiscounts();
$taxTotal += $this->GetCharges();
if ($this->ShippingIsTaxed) {
$taxTotal += $this->GetShipping();
}
return $taxTotal;
}
To:
function GetTaxableTotal() {
$taxTotal = 0;
$taxTotal = $this->TotalColumn("SubTotal");
$taxTotal -= $this->GetDiscounts();
$taxTotal += $this->GetCharges();
if ($this->ShippingIsTaxed) {
$taxTotal += $this->GetShipping();
}
return $taxTotal;
}
I don't think it is advisable to do it this way so I would really appreciate you looking at the attached files and letting me know the correct way I should be using.