Custom Coded Coupon
Hi Ray... just following up on your premium support with our custom free shipping coupon code. Sharing the files in case you can spot the issue.
Hi Ray... just following up on your premium support with our custom free shipping coupon code. Sharing the files in case you can spot the issue.
I see the issue.
This line is missing parenthasis:
$couponGood = (isset($_SESSION["couponcode"]) && $_SESSION["couponcode"] == $allowCoupon && date("n/j/Y") == "11/22/2019" && ($x_value === 'FEDEXGROUND') || ($x_value === 'GROUND_HOME_DELIVERY'));
should be:
$couponGood = (isset($_SESSION["couponcode"]) && $_SESSION["couponcode"] == $allowCoupon && date("n/j/Y") == "11/22/2019" && (($x_value === 'FEDEXGROUND') || ($x_value === 'GROUND_HOME_DELIVERY')));
I think it should be the same line on both pages.
So this part:
if($_SESSION["eCart_FedEx_Quote"] > 0){
if ($couponGood) {
$_SESSION["eCart_FedEx_Quote"] = 0;
}
That I tried switching to:
if($_SESSION["eCart_FedEx_Quote"] > 0){
if ($couponGood) {
$_SESSION["eCart_FedEx_Quote"] == 0;
}
Should still be the single "=" because we're setting that to 0, correct?
Yes, that should be a single equal sign.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.