Dynamic, Multiple Coupons
My client would like to have multiple coupon codes running at the same time that they control themselves. I've already set-up the database side of this and tried to follow instructions from a post in the archives from Mark Haynes here.
forumdetail.php?MessageID=%3C45a89c55%242976562c%242320c%40www.webassist.com%3A8119%3E
I get this error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
in /xxxx/xxx/xxx/WA_eCart/xxxxcart_PHP.php on line 100
Here's line 98 - 104:
function WAEC_xxxxcart_PromotionDiscount() {
$totalDiscount = 0;
if (true && ((sizeof($this->Items) > 0) && ((isset($_SESSION['PromoCode'])?$_SESSION['PromoCode']:"") == "$_SESSION['PromoDiscount']"))) {
$totalDiscount += ($this->TotalColumn("TotalPrice") * $_SESSION['PromoPrice']);//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
Thanks