private function check_seller_account()
 {
     if (!Module::isInstalled('agilemultipleseller')) {
         return;
     }
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $id_customer = intval(Tools::getValue('id_customer', 0));
     $id_sellerinfo = SellerInfo::getIdByCustomerId($id_customer);
     $tokenSellerinfo = '';
     if ($id_sellerinfo > 0) {
         $tokenSellerinfo = Tools::getAdminToken('AdminSellerinfos' . (int) Tab::getIdFromClassName('AdminSellerinfos') . (int) $this->context->employee->id);
     }
     $tokenSellerEmployee = '';
     $sellerinfo = new SellerInfo($id_sellerinfo);
     if (Validate::isLoadedObject($sellerinfo)) {
         $tokenSellerEmployee = Tools::getAdminToken('AdminEmployees' . (int) Tab::getIdFromClassName('AdminEmployees') . (int) $this->context->employee->id);
     }
     $this->context->smarty->assign(array('id_sellerinfo' => $id_sellerinfo, 'tokenSellerinfo' => $tokenSellerinfo, 'id_seller_empployee' => $sellerinfo->id_seller, 'tokenSellerEmployee' => $tokenSellerEmployee, 'show_seller_options' => $this->is_seller ? 0 : 1));
 }
 public function init()
 {
     $this->display_column_left = false;
     $this->display_column_right = false;
     parent::init();
     $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId(self::$cookie->id_customer));
     $this->seller = new Employee($this->sellerinfo->id_seller);
     $hcjkispeef = "seller_exists";
     ${"GLOBALS"}["rdwfndiorn"] = "pagename";
     ${${"GLOBALS"}["ndbfsnbuwdpq"]} = Validate::isLoadedObject($this->seller);
     $this->isSeller = (${$hcjkispeef} and $this->seller->active);
     ${${"GLOBALS"}["rdwfndiorn"]} = AgileHelper::getPageName();
     if (!${${"GLOBALS"}["ndbfsnbuwdpq"]} && ${${"GLOBALS"}["cvseqebxgmo"]} != "sellersummary.php") {
         $this->errors[] = Tools::displayError("You do not have permission to access this page. Please conatct store administrator.");
     }
     if (Module::isInstalled("agilesellerlistoptions")) {
         include_once _PS_ROOT_DIR_ . "/modules/agilesellerlistoptions/agilesellerlistoptions.php";
         ${${"GLOBALS"}["wokgohn"]} = new AgileSellerListOptions();
         self::$smarty->assign(array("pay_options_link" => $aslmodule->getPayOptionLink($this->sellerinfo->id_seller)));
     }
     self::$smarty->assign(array("isSeller" => $this->isSeller, "seller_exists" => ${${"GLOBALS"}["ndbfsnbuwdpq"]}, "agilemultipleseller_views" => _PS_ROOT_DIR_ . "/modules/agilemultipleseller/views/", "agilemultipleseller_custom" => _PS_ROOT_DIR_ . "/modules/agilemultipleseller/custom/", "sellerinfo" => $this->sellerinfo, "seller" => $this->seller, "seller_back_office" => (int) Configuration::get("AGILE_MS_SELLER_BACK_OFFICE"), "is_seller_shipping_installed" => Module::isInstalled("agilesellershipping"), "is_seller_commission_installed" => Module::isInstalled("agilesellercommission"), "is_seller_messenger_installed" => Module::isInstalled("agilesellermessenger"), "is_seller_ratings_installed" => Module::isInstalled("agilesellerratings"), "is_multiple_shop_installed" => Module::isInstalled("agilemultipleshop"), "is_seller_listoptions_installed" => Module::isInstalled("agilesellerlistoptions"), "is_agileprepaidcredit_installed" => Module::isInstalled("agileprepaidcredit"), "sellertoken" => Tools::encrypt("ams_seller") . ($this->isSeller ? $this->seller->passwd : ""), "admin_folder_name" => Configuration::get("AGILE_MS_ADMIN_FOLDER_NAME"), "selleremail" => $this->seller ? $this->seller->email : "", "ajaxurl" => _MODULE_DIR_, "seller_palenl_withleft" => (int) Configuration::get("AGILE_MS_SELLER_PANEL_WITHLEFT"), "seller_palenl_withright" => (int) Configuration::get("AGILE_MS_SELLER_PANEL_WITHRIGHT"), "is_seller_pickupcenter_installed" => Module::isInstalled("agilepickupcenter")));
 }
Ejemplo n.º 3
0
 public function init()
 {
     parent::init();
     ${"GLOBALS"}["tvubeipssbhz"] = "id_product";
     $bxgngnjmt = "action";
     $this->orderBy = Tools::getValue("agile_orderby");
     $this->orderWay = Tools::getValue("agile_orderway");
     $cegzdngh = "id_product";
     ${$bxgngnjmt} = Tools::getValue("process");
     ${$cegzdngh} = Tools::getValue("id_product");
     if (isset(${${"GLOBALS"}["xmejvhmbjf"]}) && isset(${${"GLOBALS"}["tvubeipssbhz"]})) {
         ${"GLOBALS"}["qcujxbitt"] = "action";
         $ljdeuuxtnpu = "action";
         if (${${"GLOBALS"}["qcujxbitt"]} == "delete") {
             $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId($this->context->customer->id), $this->context->language->id);
             if ($this->sellerinfo->id_seller > 0 and $this->sellerinfo->id_seller == AgileSellerManager::getObjectOwnerID("product", ${${"GLOBALS"}["kswjllrrkq"]})) {
                 ${"GLOBALS"}["jbichwqsqmye"] = "product";
                 $gmydjry = "product";
                 ${${"GLOBALS"}["xbssqyr"]} = new Product((int) ${${"GLOBALS"}["kswjllrrkq"]});
                 $this->beforeDelete(${${"GLOBALS"}["jbichwqsqmye"]});
                 if (!$product->delete()) {
                     $this->errors[] = Tools::displayError("Error occured during deleting the product.");
                 }
                 $this->afterDelete(${$gmydjry}, $product->id);
             } else {
                 $this->errors[] = Tools::displayError("You do not have permission to delete this product or the product is not found.");
             }
         } else {
             if (${${"GLOBALS"}["xmejvhmbjf"]} == "inactive" || ${$ljdeuuxtnpu} == "active") {
                 $gvvbmjfbht = "id_product";
                 ${${"GLOBALS"}["xbssqyr"]} = new Product((int) ${$gvvbmjfbht});
                 $product->active = !$product->active;
                 $product->update();
                 $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId($this->context->customer->id), $this->context->language->id);
                 AgileSellerManager::assignObjectOwner("product", ${${"GLOBALS"}["kswjllrrkq"]}, $this->sellerinfo->id_seller);
             }
         }
     }
 }
Ejemplo n.º 4
0
 public static function current_logged_seller_id()
 {
     global $cookie, $cart;
     if (!isset(${${"GLOBALS"}["zsjsxotvw"]})) {
         return 0;
     }
     if ($cookie->id_employee > 0) {
         if (intval($cookie->profile) == Configuration::get("AGILE_MS_PROFILE_ID")) {
             return intval($cookie->id_employee);
         } else {
             return 0;
         }
     } else {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         ${"GLOBALS"}["jbfjix"] = "sellerinfo";
         ${${"GLOBALS"}["jbfjix"]} = new SellerInfo(SellerInfo::getIdByCustomerId(Context::getContext()->customer->id), Context::getContext()->language->id);
         if (Validate::isLoadedObject(${${"GLOBALS"}["qwrpbc"]})) {
             return $sellerinfo->id_seller;
         }
         return 0;
     }
 }
 public static function convert_balance_to_token($id_customer, $amount_to_convert, $desc)
 {
     $cakdiwup = "account_balance";
     ${"GLOBALS"}["wydinnxpjg"] = "currency";
     global $cookie;
     ${"GLOBALS"}["qdzrwqyyfe"] = "token_units";
     if (!Module::isInstalled("agileprepaidcredit")) {
         return;
     }
     if (!Module::isInstalled("agilesellercommission")) {
         return;
     }
     ${"GLOBALS"}["vwmwnyrlbhw"] = "token_units";
     require_once _PS_ROOT_DIR_ . "/modules/agileprepaidcredit/agileprepaidcredit.php";
     $czpafvny = "sellerinfo";
     $sssdvetl = "apcm";
     $cebtzbvhkvjb = "amount_to_convert";
     require_once _PS_ROOT_DIR_ . "/modules/agileprepaidcredit/CustomerCredit.php";
     require_once _PS_ROOT_DIR_ . "/modules/agilesellercommission/SellerCommission.php";
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     if (${${"GLOBALS"}["xnhalilbkn"]} <= 0) {
         return Tools::displayError("Invalid convert amount.");
     }
     ${${"GLOBALS"}["atnqtpp"]} = new SellerInfo(SellerInfo::getIdByCustomerId(${${"GLOBALS"}["tivjjbgb"]}));
     ${"GLOBALS"}["cdokbpvfy"] = "amount_to_convert";
     if (!Validate::isLoadedObject(${$czpafvny})) {
         return Tools::displayError("Seller info can not be found.");
     }
     ${${"GLOBALS"}["mvofkxku"]} = AgileSellerManager::getAccountBalance($sellerinfo->id_seller);
     if (${$cakdiwup} < ${${"GLOBALS"}["cdokbpvfy"]}) {
         return Tools::displayError("You do not have enough account balance.");
     }
     ${${"GLOBALS"}["wydinnxpjg"]} = new Currency(Configuration::get("ASC_COMMISSION_CURRENCY"));
     ${${"GLOBALS"}["vwmwnyrlbhw"]} = AgilePrepaidCredit::ConvertPrice2Tokens($currency->id, ${${"GLOBALS"}["xnhalilbkn"]});
     ${${"GLOBALS"}["givutwwah"]} = new CustomerCredit();
     $cc->id = 0;
     $cc->id_customer = $cookie->id_customer;
     $cc->id_order = 0;
     ${$sssdvetl} = new AgilePrepaidCredit();
     if (version_compare($apcm->version, "1.4.9", ">=")) {
         $cc->id_reason = AgilePrepaidCredit::CREDIT_REASON_FROM_SELLERCOMMISSION;
     }
     $cc->units = ${${"GLOBALS"}["qdzrwqyyfe"]};
     $cc->date_add = date("Y-m-d H:i:s");
     $cc->add();
     SellerCommission::addCreditMemoRecord($sellerinfo->id_seller, SellerCommission::RECORD_TYPE_SELLER_DEBIT, ${$cebtzbvhkvjb}, ${${"GLOBALS"}["uzllxeigbbj"]});
     return "";
 }
Ejemplo n.º 6
0
    public static function getChildrenWithNbSelectedSubCat($id_parent, $selectedCat, $id_lang, Shop $shop = null, $use_shop_context = true)
    {
        global $cookie;
        if (!Module::isInstalled('agilemultipleseller')) {
            return parent::getChildrenWithNbSelectedSubCat($id_parent, $selectedCat, $id_lang, $shop, $use_shop_context);
        }
        $isSeller = (intval($cookie->profile) == Configuration::get('AGILE_MS_PROFILE_ID') or intval($cookie->profile) == 0);
        if (!$isSeller) {
            return parent::getChildrenWithNbSelectedSubCat($id_parent, $selectedCat, $id_lang, $shop, $use_shop_context);
        }
        require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php";
        require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
        if (intval($cookie->profile) > 0) {
            $id_seller = $cookie->id_employee;
        } else {
            $sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId($cookie->id_customer));
            $id_seller = $sellerinfo->id_seller;
        }
        $exclude = AgileMultipleSeller::getSpecialCatrgoryIds();
        $selectedCat = explode(',', str_replace(' ', '', $selectedCat));
        return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
		SELECT c.`id_category`, c.`level_depth`, cl.`name`, IF((
			SELECT COUNT(*)
			FROM `' . _DB_PREFIX_ . 'category` c2
			WHERE c2.`id_parent` = c.`id_category`
		) > 0, 1, 0) AS has_children, ' . ($selectedCat ? '(
			SELECT count(c3.`id_category`)
			FROM `' . _DB_PREFIX_ . 'category` c3
			WHERE c3.`nleft` > c.`nleft`
			AND c3.`nright` < c.`nright`
			AND c3.`id_category`  IN (' . implode(',', array_map('intval', $selectedCat)) . ')
		)' : '0') . ' AS nbSelectedSubCat
		FROM `' . _DB_PREFIX_ . 'category` c
		LEFT JOIN `' . _DB_PREFIX_ . 'category_lang` cl ON c.`id_category` = cl.`id_category`
		LEFT JOIN `' . _DB_PREFIX_ . 'category_owner` co ON c.id_category=co.id_category
		WHERE `id_lang` = ' . (int) $id_lang . '
		AND c.`id_parent` = ' . (int) $id_parent . '
		' . (empty($exclude) ? '' : 'AND c.id_category NOT IN (' . $exclude . ')') . '
		AND (IFNULL(co.id_owner,0) = ' . $id_seller . ' OR IFNULL(co.id_owner,0)=0)
		ORDER BY `position` ASC');
    }
 private function initiContentForInformation()
 {
     $vhafmkgxjva = "category_nbr";
     $mvcrgvbvcb = "language";
     $myqwjjy = "category_nbr";
     $dutlbmuk = "categories";
     ${$mvcrgvbvcb} = new Language($this->id_language);
     ${${"GLOBALS"}["jhyxxhuo"]} = file_exists(_PS_ROOT_DIR_ . "/js/tiny_mce/langs/" . $language->iso_code . ".js") ? $language->iso_code : "en";
     ${"GLOBALS"}["gfbjkeb"] = "ad";
     ${${"GLOBALS"}["kuvwml"]} = str_replace("\\", "\\\\", dirname($_SERVER["PHP_SELF"]));
     $crebbb = "categories";
     $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId(self::$cookie->id_customer), self::$cookie->id_lang);
     ${$dutlbmuk} = array();
     ${$myqwjjy} = (int) Db::getInstance()->getValue("SELECT COUNT(*) AS cnt FROM " . _DB_PREFIX_ . "category");
     if (${$vhafmkgxjva} <= 1000) {
         $kmgfuo = "specialcids";
         ${"GLOBALS"}["uvadbayndxqr"] = "specialcids";
         $uxpwiboxxa = "sql";
         ${${"GLOBALS"}["vvskebgpewm"]} = "SELECT c.id_category, c.id_parent, cl.name \n\t\t\tFROM " . _DB_PREFIX_ . "category c \n\t\t\t\tINNER JOIN " . _DB_PREFIX_ . "category_owner co ON (c.id_category=co.id_category AND (IFNULL(co.id_owner,0)=0 OR IFNULL(co.id_owner,0)=" . intval($this->sellerinfo->id_seller) . "))\n\t\t\t\tLEFT JOIN " . _DB_PREFIX_ . "category_lang cl ON (c.id_category=cl.id_category AND cl.id_lang=" . $this->context->language->id . " AND cl.id_shop=" . $this->context->shop->id . ")\n\t\t\t\tWHERE c.id_category > 1\n\t\t\t\t";
         $einijh = "specialcids";
         ${"GLOBALS"}["wzpgiddtedw"] = "caterows";
         ${$kmgfuo} = AgileMultipleSeller::getSpecialCatrgoryIds();
         if (!empty(${${"GLOBALS"}["uvadbayndxqr"]})) {
             ${$uxpwiboxxa} .= " AND c.id_category NOT IN (" . ${$einijh} . ")";
         }
         ${${"GLOBALS"}["gmagdrofuuu"]} = Db::getInstance()->ExecuteS(${${"GLOBALS"}["vvskebgpewm"]});
         ${${"GLOBALS"}["kkajzqyo"]} = AgileHelper::getSortedFullnameCategory(${${"GLOBALS"}["wzpgiddtedw"]});
     }
     $ohvjrmga = "HOOK_PRODYCT_LIST_OPTIONS";
     ${$ohvjrmga} = "";
     if (Module::isInstalled("agilesellerlistoptions")) {
         include_once _PS_ROOT_DIR_ . "/modules/agilesellerlistoptions/agilesellerlistoptions.php";
         ${${"GLOBALS"}["nbpjcibnley"]} = new AgileSellerListOptions();
         ${${"GLOBALS"}["kenogesux"]} = $aslo_module->hookAgileAdminProductsFormTop(array("for_front" => 1, "id_product" => $this->object->id), true);
     }
     $newCatFormat = $this->getNewCategoryFormat();
     self::$smarty->assign(array("ad" => ${${"GLOBALS"}["gfbjkeb"]}, "isoTinyMCE" => ${${"GLOBALS"}["jhyxxhuo"]}, "theme_css_dir" => _THEME_CSS_DIR_, "ajaxurl" => _MODULE_DIR_, "suppliers" => Supplier::getSuppliers(), "manufacturers" => Manufacturer::getManufacturers(), "currency" => new Currency((int) Configuration::get("PS_CURRENCY_DEFAULT")), "ps_ssl_enabled" => Configuration::get("PS_SSL_ENABLED"), "is_pack" => $this->object->id && Pack::isPack($this->object->id) || Tools::getValue("ppack") || Tools::getValue("type_product") == Product::PTYPE_PACK, "categories" => ${$crebbb}, "new_categories" => $newCatFormat, "order_out_of_stock" => Configuration::get("PS_ORDER_OUT_OF_STOCK"), "bullet_common_field" => "", "is_agilesellerlistoptions_installed" => Module::isInstalled("agilesellerlistoptions"), "HOOK_PRODYCT_LIST_OPTIONS" => ${${"GLOBALS"}["kenogesux"]}));
 }
Ejemplo n.º 8
0
 protected function processSubmitSellerinfo()
 {
     ${"GLOBALS"}["ffnxcnlg"] = "id_paymentinfo_paypal";
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     ${"GLOBALS"}["frvqikxjd"] = "paypal_inuse";
     $wcqfvynoolh = "id_paymentinfo_cod";
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/AgileSellerPaymentInfo.php";
     ${${"GLOBALS"}["ztmujejepnz"]} = new SellerInfo(SellerInfo::getIdByCustomerId(self::$cookie->id_customer), self::$cookie->id_lang);
     if (AgileSellerPaymentInfo::is_seller_payment_account_existed("agilepaypal", $sellerinfo->id_seller, Tools::getValue("paypal_email"))) {
         $this->errors[] = Tools::displayError("The paypal account email has been used by another seller.");
     }
     ${"GLOBALS"}["uohljc"] = "id_paymentinfo_paypal";
     ${"GLOBALS"}["oxhfxn"] = "paypal_emailaddress";
     ${${"GLOBALS"}["oxhfxn"]} = Tools::getValue("paypal_email");
     ${"GLOBALS"}["yxiqwgdbl"] = "paymentinfo_paypal";
     ${${"GLOBALS"}["frvqikxjd"]} = (int) Tools::getValue("paypal_in_use");
     if ((${${"GLOBALS"}["zmendemfxetq"]} || !empty(${${"GLOBALS"}["wkdsijnbhw"]})) && !Validate::isEmail(${${"GLOBALS"}["wkdsijnbhw"]})) {
         $this->errors[] = Tools::displayError("The paypal account email is invalid.");
     }
     if (!empty($this->errors)) {
         return;
     }
     ${"GLOBALS"}["gzxrhutccoo"] = "cod_notes";
     ${${"GLOBALS"}["uohljc"]} = intval(Tools::getValue("id_paymentinfo_paypal"));
     if (${${"GLOBALS"}["ffnxcnlg"]} > 0) {
         ${${"GLOBALS"}["yxiqwgdbl"]} = new AgileSellerPaymentInfo(${${"GLOBALS"}["xcjjpktqh"]});
     } else {
         ${${"GLOBALS"}["hwlygpy"]} = new AgileSellerPaymentInfo();
         $paymentinfo_paypal->id = 0;
         $paymentinfo_paypal->id_currency = 0;
     }
     $paymentinfo_paypal->id_seller = $sellerinfo->id_seller;
     ${"GLOBALS"}["urxswawvr"] = "paymentinfo_cod";
     $paymentinfo_paypal->module_name = "agilepaypal";
     $paymentinfo_paypal->info1 = Tools::getValue("paypal_email");
     $paymentinfo_paypal->in_use = Tools::getValue("paypal_in_use");
     $paymentinfo_paypal->save();
     ${${"GLOBALS"}["gzxrhutccoo"]} = Tools::getValue("cod_notes");
     ${${"GLOBALS"}["ybifkiqb"]} = (int) Tools::getValue("cod_in_use");
     ${$wcqfvynoolh} = intval(Tools::getValue("id_paymentinfo_cod"));
     if (${${"GLOBALS"}["nmyqlkttxp"]} > 0) {
         ${${"GLOBALS"}["urxswawvr"]} = new AgileSellerPaymentInfo(${${"GLOBALS"}["xcjjpktqh"]});
     } else {
         $wgvhvlphcwd = "paymentinfo_cod";
         ${$wgvhvlphcwd} = new AgileSellerPaymentInfo();
         $paymentinfo_cod->id = 0;
     }
     $paymentinfo_cod->id_seller = $sellerinfo->id_seller;
     $paymentinfo_cod->module_name = "agilecashondelivery";
     $paymentinfo_cod->info1 = Tools::getValue("cod_notes");
     $paymentinfo_cod->in_use = Tools::getValue("cod_in_use");
     $paymentinfo_cod->save();
     if (Module::isInstalled("agilegooglecheckout")) {
         $dtrinzc = "id_paymentinfo_gcheckout";
         if (AgileSellerPaymentInfo::is_seller_payment_account_existed("agilegooglecheckout", $sellerinfo->id_seller, Tools::getValue("gcheckout_merchant_id"))) {
             $this->errors[] = Tools::displayError("The google checkout account has been used by another seller.");
             return;
         }
         $pcyquknfjc = "id_paymentinfo_gcheckout";
         $yucskmiujsn = "paymentinfo_gcheckout";
         ${$dtrinzc} = intval(Tools::getValue("id_paymentinfo_gcheckout"));
         if (${$pcyquknfjc} > 0) {
             ${$yucskmiujsn} = new AgileSellerPaymentInfo(${${"GLOBALS"}["rmpumsc"]});
         } else {
             ${${"GLOBALS"}["hocodd"]} = new AgileSellerPaymentInfo();
             $paymentinfo_gcheckout->id = 0;
             $paymentinfo_gcheckout->id_currency = 0;
         }
         $paymentinfo_gcheckout->id_seller = $sellerinfo->id_seller;
         $paymentinfo_gcheckout->module_name = "googlecheckout";
         $paymentinfo_gcheckout->info1 = Tools::getValue("gcheckout_merchant_id");
         $paymentinfo_gcheckout->info2 = Tools::getValue("gcheckout_key");
         $paymentinfo_gcheckout->in_use = Tools::getValue("gcheckout_in_use");
         $paymentinfo_gcheckout->save();
     }
     if (Module::isInstalled("agilebankwire")) {
         $sefhkjfq = "paymentinfo_bankwire";
         ${"GLOBALS"}["udeoyndd"] = "id_paymentinfo_bankwire";
         ${${"GLOBALS"}["nxbcvt"]} = intval(Tools::getValue("id_paymentinfo_bankwire"));
         if (${${"GLOBALS"}["udeoyndd"]} > 0) {
             ${$sefhkjfq} = new AgileSellerPaymentInfo(${${"GLOBALS"}["nxbcvt"]});
         } else {
             ${"GLOBALS"}["wkjndne"] = "paymentinfo_bankwire";
             ${${"GLOBALS"}["wkjndne"]} = new AgileSellerPaymentInfo();
             $paymentinfo_bankwire->id = 0;
             $paymentinfo_bankwire->id_currency = 0;
         }
         $paymentinfo_bankwire->id_seller = $sellerinfo->id_seller;
         $paymentinfo_bankwire->module_name = "bankwire";
         $paymentinfo_bankwire->info1 = Tools::getValue("bankwire_accountowner");
         $paymentinfo_bankwire->info2 = Tools::getValue("bankwire_accountdetails");
         $paymentinfo_bankwire->info3 = Tools::getValue("bankwire_bankaddress");
         $paymentinfo_bankwire->in_use = Tools::getValue("bankwire_in_use");
         $paymentinfo_bankwire->save();
     }
     if (Module::isInstalled("agilepaybycheque")) {
         $yjttwrr = "id_paymentinfo_agilepaybycheque";
         ${"GLOBALS"}["ysarmtdkwo"] = "id_paymentinfo_agilepaybycheque";
         ${$yjttwrr} = intval(Tools::getValue("id_paymentinfo_agilepaybycheque"));
         if (${${"GLOBALS"}["ysarmtdkwo"]} > 0) {
             ${${"GLOBALS"}["swrqbqopsma"]} = new AgileSellerPaymentInfo(${${"GLOBALS"}["gqrxkgtct"]});
         } else {
             $brrgvkf = "paymentinfo_agilepaybycheque";
             ${$brrgvkf} = new AgileSellerPaymentInfo();
             $paymentinfo_agilepaybycheque->id = 0;
             $paymentinfo_agilepaybycheque->id_currency = 0;
         }
         $paymentinfo_agilepaybycheque->id_seller = $sellerinfo->id_seller;
         $paymentinfo_agilepaybycheque->module_name = "agilepaybycheque";
         $paymentinfo_agilepaybycheque->info1 = Tools::getValue("agilepaybycheque_paytoname");
         $paymentinfo_agilepaybycheque->info2 = Tools::getValue("agilepaybycheque_address");
         $paymentinfo_agilepaybycheque->in_use = Tools::getValue("agilepaybycheque_in_use");
         $paymentinfo_agilepaybycheque->save();
     }
     if (empty($this->errors)) {
         self::$smarty->assign("cfmmsg_flag", 1);
     }
 }