Discounts
Hello
I am having difficulties with this again. I found some code in Xcart_PHP.php which I assume sets a discount coupon code.
function WAEC_Xcart_PromotionalDiscount() {
$totalDiscount = 0;
if (true && ((sizeof($this->Items) > 0) && ((isset($_SESSION['PromoCode'])?$_SESSION['PromoCode']:"") == "PGMAY10"))) {
$totalDiscount += ($this->TotalColumn("TotalPrice") * 0.10);//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
This suggests a code has been created before and it discounts 10%. I need a flat discount of £4.95. How can I do this?
Many Thanks