} /* echo '<script>window.location.href="paymentoptions.php";</script>'; exit();*/ // } } // Shipping total $_SESSION['SHIPPING_TOTAL'] = $_POST['shippingtotal'] == "" ? 0 : $_POST['shippingtotal']; // Tax total $_SESSION["TAX_TOTAL"] = $_POST['taxtotal'] == "" ? 0 : $_POST['taxtotal']; // coupon code $coupnCode = $_POST['couponCode'] == "" ? "" : $_POST['couponCode']; $couponCodePrice = $_POST['couponCodePrice'] == "" ? 0 : $_POST['couponCodePrice']; $response = array(); if ($coupnCode != "") { $response = CouponCode::checkCouponcodeExists($coupnCode, $userId); $arrayCount = count($response); if ($arrayCount > 0) { $data = array("message" => "valid", "couponcode" => $response->ccCode, "discount" => $response->ccDiscount, "title" => $response->ccDescription); $couponCode_det = array(); $couponCode_det['ccID'] = $response->ccID; $couponCode_det['ccCode'] = $response->ccCode; $couponCode_det['ccDiscount'] = $response->ccDiscount; $couponCode_det['ccPrice'] = $couponCodePrice; $_SESSION['couponCode_det'] = $couponCode_det; } } // Amount Paid $_SESSION['amount_paid'] = $_POST['grandtotal'] == "" ? 0 : $_POST['grandtotal']; $chkSameAsAbove = $_POST["chkSameAsAbove"]; $txtBillingFirstName = $_POST["txtBillingFirstName"];