public static function restotre_check_after_subcart_payment($id_backup)
 {
     global $cart, $cookie;
     if (Configuration::get("AGILE_MS_PAYMENT_MODE") == self::PAYMENT_MODE_SELLER and intval(Tools::getValue("id_subcart")) > 0) {
         ${"GLOBALS"}["hiwauye"] = "cart";
         AgileMultipleSeller::update_subcart_progress(intval(Tools::getValue("id_subcart")), 1);
         ${"GLOBALS"}["hopnltlvn"] = "nbr";
         $cookie->id_cart = ${${"GLOBALS"}["vojqunvhx"]};
         ${${"GLOBALS"}["hiwauye"]} = new Cart($cookie->id_cart);
         ${${"GLOBALS"}["fajsjwqsq"]} = "SELECT count(*) FROM " . _DB_PREFIX_ . "cart_product WHERE id_cart=" . $cart->id;
         ${${"GLOBALS"}["hopnltlvn"]} = Db::getInstance()->getValue(${${"GLOBALS"}["fajsjwqsq"]});
         if (${${"GLOBALS"}["nokytgbsecqy"]} == 0) {
             $cart->delete();
             $cookie->id_cart = 0;
         }
     }
 }
 public function agilepaypal_return()
 {
     global $cookie, $smarty;
     $isLoggedOn = _PS_VERSION_ > '1.5' ? Context::getContext()->customer->isLogged() : $cookie->isLogged();
     $id_subcart = 0;
     if (Module::isInstalled('agilemultipleseller')) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php";
         if (Configuration::get('AGILE_MS_PAYMENT_MODE') == AgileMultipleSeller::PAYMENT_MODE_SELLER and intval(Tools::getValue('id_subcart')) > 0) {
             $id_subcart = intval(Tools::getValue('id_subcart'));
             AgileMultipleSeller::update_subcart_progress($id_subcart, 1);
         }
     }
     $smarty->assign('id_subcart', $id_subcart);
     $smarty->assign('isLoggedOn', $isLoggedOn);
 }