Syntax issue with a Discount
//eCart Rule
function WAEC_eCart1_promo() {
$totalDiscount = 0;
if (true && ((sizeof($this->Items) > 0) && (( $_POST["promocode"] <>'' )))) {
$totalDiscount += ($this->TotalColumn("TotalPrice") * ($row_promo['prDiscount']));//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
I believe that my syntax for this: ($row_promo['prDiscount'])) is incorrect because the discount does not set. If I replace this with a simple value it works fine.
This snippet is from the included eCart page.
The value is setting. I can display it on the Confirmation page but I cannot seem to use it in my discount code.
Have I expressed it incorrectly?