示例#1
0
                     $rediractflag = true;
                     $res = DeCodeItemInClient($productID);
                     $i = SearchConfigurationInSessionVariable($res["variants"], $res["productID"]);
                     if ($i != -1) {
                         $_SESSION["gids"][$i] = 0;
                     }
                 }
             }
         }
         if ($rediractflag) {
             Redirect("index.php?product_removed=yes");
         }
     }
     $orderID = ordOrderProcessing($_GET["shippingMethodID"], $_GET["paymentMethodID"], $_GET["shippingAddressID"], $_GET["billingAddressID"], $shippingModuleFiles, $paymentModuleFiles, $_POST["order_comment"], $cc_number, $cc_holdername, $cc_expires, $cc_cvv, $_SESSION["log"], $smarty_mail, $shServiceID);
     $_SESSION["newoid"] = $orderID;
     cartClearCartContet();
     if (is_bool($orderID)) {
         RedirectProtected("index.php?order4_confirmation=yes" . "&shippingAddressID=" . $_GET["shippingAddressID"] . "&shippingMethodID=" . $_GET["shippingMethodID"] . "&billingAddressID=" . $_GET["billingAddressID"] . "&paymentMethodID=" . $_GET["paymentMethodID"] . "&payment_error=1");
     } else {
         RedirectProtected("index.php?order4_confirmation=yes" . "&order_success=yes&paymentMethodID=" . $_GET["paymentMethodID"] . "&orderID=" . $orderID);
     }
 }
 if (isset($_GET["order_success"])) {
     if (isset($_GET["orderID"]) && isset($_SESSION["newoid"]) && (int) $_SESSION["newoid"] == (int) $_GET["orderID"]) {
         $paymentMethod = payGetPaymentMethodById($_GET["paymentMethodID"]);
         $currentPaymentModule = modGetModuleObj($paymentMethod["module_id"], PAYMENT_MODULE);
         if ($currentPaymentModule != null) {
             $after_processing_html = $currentPaymentModule->after_processing_html($_GET["orderID"]);
         } else {
             $after_processing_html = "";
         }
 function cleanCurrentCart($mode = 'succes')
 {
     cartClearCartContet($mode);
 }