Discount not working
Discount not working
My discount is not being triggered: I want it to work as: If quantity of item between 6 and 10, then 5% discount for that item (should apply to each exact item).
I have :
//eCart Rule
function WAEC_eCart1_QuantityDiscount() {
$totalDiscount = 0;
if (true && ((sizeof($this->Items) >= 6) && (sizeof($this->Items) <= 10))) {
$totalDiscount += ($this->TotalColumn("TotalPrice") * 0.05);//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}