public function initContent()
 {
     $btmiidgws = "filterby";
     parent::initContent();
     $tpnbrkrdt = "products_nb";
     $dpfxmrmwh = "def_id_currency";
     $vzesbwi = "def_id_currency";
     ${$dpfxmrmwh} = (int) Configuration::get("PS_CURRENCY_DEFAULT");
     ${"GLOBALS"}["roxwkcvqhflj"] = "filterby";
     $fqpfpxqeh = "extraCondition";
     ${${"GLOBALS"}["mnobbzfvnp"]} = "";
     ${$btmiidgws} = Tools::getValue("agile_filterby");
     ${${"GLOBALS"}["gocvemsdbgb"]} = Tools::getValue("agile_filterval");
     if (${${"GLOBALS"}["roxwkcvqhflj"]} != "" && ${${"GLOBALS"}["gocvemsdbgb"]} != "") {
         ${"GLOBALS"}["oailbaupy"] = "extraCondition";
         ${"GLOBALS"}["pdessrponr"] = "filterval";
         $fooqqgucst = "filterby";
         $sekwzwjn = "filterval";
         $jhdbckrgnsy = "filterby";
         ${"GLOBALS"}["swoifnfpm"] = "filterby";
         ${"GLOBALS"}["cjfbvvp"] = "filterby";
         if (${$fooqqgucst} == "p.active" || ${$jhdbckrgnsy} == "po.approved" || ${${"GLOBALS"}["swoifnfpm"]} == "p.id_product") {
             ${${"GLOBALS"}["oailbaupy"]} = " AND " . ${${"GLOBALS"}["ghisjkbpjr"]} . "=" . (int) ${$sekwzwjn};
         } else {
             ${${"GLOBALS"}["mnobbzfvnp"]} = " AND " . ${${"GLOBALS"}["cjfbvvp"]} . " like '%" . ${${"GLOBALS"}["pdessrponr"]} . "%' ";
         }
     }
     $kdnvyur = "products";
     ${${"GLOBALS"}["vzoewvefm"]} = AgileSellerManager::getProducts($this->sellerinfo->id_seller, $this->context, true, $this->p, $this->n, $this->orderBy, $this->orderWay, ${${"GLOBALS"}["mnobbzfvnp"]});
     $this->pagination(${$tpnbrkrdt});
     ${"GLOBALS"}["qhyunwxg"] = "products";
     ${${"GLOBALS"}["qhyunwxg"]} = AgileSellerManager::getProducts($this->sellerinfo->id_seller, $this->context, false, $this->p, $this->n, $this->orderBy, $this->orderWay, ${$fqpfpxqeh});
     self::$smarty->assign(array("seller_tab_id" => 3, "products" => ${$kdnvyur}, "is_apprpved_required" => intval(Configuration::get("AGILE_MS_PRODUCT_APPROVAL")), "def_id_currency" => ${$vzesbwi}, "is_legacy_image" => (int) Configuration::get("PS_LEGACY_IMAGES"), "psize" => (int) Tools::getValue("n"), "pnum" => (int) Tools::getValue("p"), "agile_orderby" => $this->orderBy == "" ? "p.date_add" : $this->orderBy, "agile_orderway" => $this->orderWay == "" ? "DESC" : $this->orderWay, "agile_filterby" => Tools::getValue("agile_filterby"), "agile_filterval" => Tools::getValue("agile_filterval")));
     $this->setTemplate("sellerproducts.tpl");
 }
Exemple #2
0
 public function initContent()
 {
     parent::initContent();
     $this->assignCountries();
     $this->assignVatNumber();
     $this->assignAddressFormat();
     $this->setTemplate("sellersignup.tpl");
 }
Exemple #3
0
 public function initContent()
 {
     parent::initContent();
     ${${"GLOBALS"}["fchupvb"]} = AgileSellerManager::getOrders($this->sellerinfo->id_seller, true, $this->context, true);
     $this->pagination(${${"GLOBALS"}["fchupvb"]});
     ${${"GLOBALS"}["jejxhem"]} = AgileSellerManager::getOrders($this->sellerinfo->id_seller, true, $this->context, false, $this->p, $this->n, $this->orderBy, $this->orderWay);
     self::$smarty->assign(array("seller_tab_id" => 4, "orders" => ${${"GLOBALS"}["jejxhem"]}, "invoiceAllowed" => (int) Configuration::get("PS_INVOICE")));
     $this->setTemplate("sellerorders.tpl");
 }
Exemple #4
0
 public function initContent()
 {
     ${"GLOBALS"}["numrrlvipbq"] = "sellermessages";
     parent::initContent();
     ${"GLOBALS"}["wlsqmfslnmw"] = "sellermessages_nb";
     ${${"GLOBALS"}["wlsqmfslnmw"]} = AgileSellerMessage::getSellerMessages($this->sellerinfo->id_seller, 0, 0, true);
     $hgwdfineowv = "sellermessages";
     $this->pagination(${${"GLOBALS"}["xomdbo"]});
     ${${"GLOBALS"}["numrrlvipbq"]} = AgileSellerMessage::getSellerMessages($this->sellerinfo->id_seller, 0, 0, false, $this->p, $this->n);
     self::$smarty->assign(array("seller_tab_id" => 8, "id_customer" => $this->context->customer->id, "sellermessages" => ${$hgwdfineowv}, "hide_email" => intval(Configuration::get("ASMGER_HIDE_EMAIL"))));
     $this->setTemplate("sellermessages.tpl");
 }
Exemple #5
0
 public function initContent()
 {
     ${"GLOBALS"}["wdbckpmvjlkl"] = "commssionrecords_nb";
     parent::initContent();
     ${"GLOBALS"}["fbrnoyizczqn"] = "commssionrecords";
     ${${"GLOBALS"}["hnfheumjhbu"]} = (int) Configuration::get("ASC_COMMISSION_CURRENCY");
     ${${"GLOBALS"}["wdbckpmvjlkl"]} = SellerCommission::getRecordNb($this->sellerinfo->id_seller);
     $this->pagination(${${"GLOBALS"}["tefcbpam"]});
     ${${"GLOBALS"}["fbrnoyizczqn"]} = SellerCommission::getRecords($this->sellerinfo->id_seller, $this->p, $this->n, $this->orderBy, $this->orderWay);
     self::$smarty->assign(array("seller_tab_id" => 7, "commssionrecords" => ${${"GLOBALS"}["jeysefw"]}, "id_commission_currency" => ${${"GLOBALS"}["hnfheumjhbu"]}));
     $this->setTemplate("sellerhistory.tpl");
 }
Exemple #6
0
 public function initContent()
 {
     $dujxmdimr = "cms";
     $jewjbpezikv = "link_terms";
     parent::initContent();
     $fojrmoqrqht = "paycommission_url";
     global $cookie, $link, $smarty;
     $this->context->controller->addJQueryPlugin("fancybox");
     $this->context->controller->addJQueryUI("ui.sortable");
     ${"GLOBALS"}["rfvrgtigtrw"] = "account_balance";
     $this->context->controller->addJQueryUI("ui.draggable");
     $this->context->controller->addJQueryUI("effects.transfer");
     ${${"GLOBALS"}["xwbhtra"]} = Context::getContext()->cookie->id_lang;
     ${${"GLOBALS"}["hnxcwphyjtg"]} = new CMS((int) Configuration::get("AGILE_MS_SELLER_TERMS"), (int) $cookie->id_lang);
     $xmyqsx = "paycommission_url";
     ${${"GLOBALS"}["cgxcwcw"]} = $link->getCMSLink(${$dujxmdimr}, $cms->link_rewrite, true);
     $mwkwpdd = "link_terms";
     if (!strpos(${${"GLOBALS"}["cgxcwcw"]}, "?")) {
         ${${"GLOBALS"}["cgxcwcw"]} .= "?content_only=1";
     } else {
         ${$mwkwpdd} .= "&content_only=1";
     }
     $smarty->assign(array("link_terms" => ${$jewjbpezikv}, "id_cms_seller_terms" => intval(Configuration::get("AGILE_MS_SELLER_TERMS"))));
     ${${"GLOBALS"}["xfocwqwkpk"]} = 0;
     ${$fojrmoqrqht} = "";
     $dsmoyovxdiy = "token_balance";
     if (Module::isInstalled("agilesellercommission")) {
         ${"GLOBALS"}["gfmbcvrxuee"] = "account_balance";
         $conmijg = "account_balance";
         include_once _PS_ROOT_DIR_ . "/modules/agilesellercommission/agilesellercommission.php";
         ${"GLOBALS"}["xteysyfbyd"] = "paycommission_url";
         include_once _PS_ROOT_DIR_ . "/modules/agilesellercommission/SellerCommission.php";
         $kgsttmvgw = "paydata";
         ${"GLOBALS"}["qsgosovu"] = "paydata";
         ${$conmijg} = AgileSellerManager::getAccountBalance($this->sellerinfo->id_seller);
         ${${"GLOBALS"}["qsgosovu"]} = array("record_type" => SellerCommission::RECORD_TYPE_SELLER_PAY_STORE, "id_seller" => $this->sellerinfo->id_seller, "amount_to_pay" => -${${"GLOBALS"}["gfmbcvrxuee"]}, "retkey" => Tools::getValue("token"), "paykey" => Tools::encrypt($this->sellerinfo->id_seller), "isfront" => 1);
         ${${"GLOBALS"}["xteysyfbyd"]} = AgileSellerCommission::get_paycommission_url(${$kgsttmvgw});
     }
     ${${"GLOBALS"}["gmrvjuvp"]} = 0;
     if (Module::isInstalled("agileprepaidcredit")) {
         include_once _PS_ROOT_DIR_ . "/modules/agileprepaidcredit/agileprepaidcredit.php";
         ${${"GLOBALS"}["gmrvjuvp"]} = AgilePrepaidCredit::GetTokenBalance($cookie->id_customer);
     }
     ${${"GLOBALS"}["pqffvnkmpnf"]} = (int) Configuration::get("PS_CURRENCY_DEFAULT");
     self::$smarty->assign(array("seller_tab_id" => 1, "num_products" => $this->isSeller ? AgileSellerManager::getNumOfProducts($this->sellerinfo->id_seller) : 0, "num_orders" => $this->isSeller ? AgileSellerManager::getNumOfOrders($this->sellerinfo->id_seller) : 0, "totals_sold" => AgileSellerManager::getTotalAmountSold($this->sellerinfo->id_seller), "currency" => new Currency(${${"GLOBALS"}["pqffvnkmpnf"]}), "comcurrency" => new Currency((int) Configuration::get("ASC_COMMISSION_CURRENCY")), "paycommission_url" => ${$xmyqsx}, "account_balance" => ${${"GLOBALS"}["rfvrgtigtrw"]}, "token_balance" => ${$dsmoyovxdiy}, "membership_module_integrated" => (Module::isInstalled("agilemembership") and intval(Configuration::get("AGILE_MEMBERSHIP_SELLER_INTE")) > 0) ? 1 : 0, "request_T2B" => $this->l('CHANGE TOKENS TO BALANCE'), "request_B2T" => $this->l('CHANGE BALANCE TO TOKENS'), "request_MPR" => $this->l('MAKE A PEYMENT REQUEST')));
     $this->setTemplate("sellersummary.tpl");
 }
Exemple #7
0
 public function initContent()
 {
     parent::initContent();
     $lang_id = $this->context->language->id;
     $id_seller = $this->context->controller->seller;
     $action = Tools::getValue('process');
     $id_blog = Tools::getValue('id_smart_blog_post');
     if (isset($action) && isset($id_blog)) {
         $blog = self::getPost($id_blog, $id_seller->id);
         $targetid_owner_id = $blog['id_author'];
         if ($action == 'delete') {
             if ($id_seller->id > 0 and $action == 'delete' and $this->sellerinfo->id_seller == $targetid_owner_id) {
                 $this->processDelete($id_blog, $id_seller->id);
             } else {
                 $this->errors[] = Tools::displayError('You do not have permission to delete this blog or the blog is not found.');
             }
         } else {
             if ($action == 'inactive' || $action == 'active') {
                 if ($this->sellerinfo->id_seller == $targetid_owner_id) {
                     $this->activeBlog($action, $id_blog, $id_seller->id);
                 } else {
                     $this->errors[] = Tools::displayError('You do not have permission to touch this blog or the blog is not found.');
                 }
             }
         }
     }
     $page_number = Tools::getValue('p');
     $page_number = !isset($_GET['p']) ? 1 : $page_number;
     $blog_nb = 3;
     // how many blogs in a page
     // Get Total number of blogs of author
     $total_rows = $this->getTotalAuthorBlogs($id_seller->id);
     $total_pages = ceil($total_rows / $blog_nb);
     // number of pages
     $page_position = ($page_number - 1) * $blog_nb;
     //get starting position to fetch the records
     $blogs = self::getUserBlogs($lang_id, $id_seller, $page_position, $blog_nb);
     $smartData = array('blogs' => $blogs, 'seller_tab_id' => 7, 'p' => $page_number, 'blogs_per_page' => $blog_nb, 'start' => 1, 'stop' => $total_pages, 'pages_nb' => $total_pages);
     self::$smarty->assign($smartData);
     $this->setTemplate('smartbloglist.tpl');
 }
Exemple #8
0
 public function initContent()
 {
     parent::initContent();
     $blogId = $_GET['id_smart_blog_post'];
     $sellerId = $this->context->controller->seller->id;
     $data = self::getPost($blogId);
     if (count($data) > 0) {
         $youtube_preview = $this->convertYoutube($data['youtube']);
     }
     $data = empty($data) ? array('id_author' => $sellerId) : $data;
     // die(var_dump($this->inBlogUser($blogId, $sellerId)));
     if ($this->inBlogUser($blogId, $this->context->controller->seller->id) == false && $blogId != 0) {
         $this->errors[] = Tools::displayError('You do not have permission to access/modify this data.');
         $hasOwnership = 0;
     } else {
         $hasOwnership = 1;
     }
     $img_dir = _PS_MODULE_DIR_ . 'smartblog/images/' . $sellerId;
     self::$smarty->assign(array('hasOwnerShip' => $hasOwnership, 'blog' => $data, 'youtube_preview' => $youtube_preview, 'img_dir' => $img_dir, 'post' => $_POST, 'seller_tab_id' => 7));
     $this->setTemplate('smartblogform.tpl');
 }
 public function initContent()
 {
     parent::initContent();
     $this->initContentCommon();
     if ($this->product_menu == 1) {
         $this->initiContentForInformation();
         $this->initiContentForImages();
     }
     if ($this->product_menu == 2) {
         $this->initiContentForImages();
     }
     if ($this->product_menu == 3) {
         $this->initContentForFeatures();
     }
     if ($this->product_menu == 4) {
         $this->initContentForAssociations();
     }
     if ($this->product_menu == 5) {
         $this->initContentForPrices();
     }
     if ($this->product_menu == 6) {
         $this->initContentForQuantities();
     }
     if ($this->product_menu == 7) {
         $this->initContentForCombinations();
     }
     if ($this->product_menu == 8) {
         $this->initContentVirtualProduct();
     }
     if ($this->product_menu == 9) {
         $this->initContentForShipping();
     }
     if ($this->product_menu == 10) {
         $this->initContentForAttachments();
     }
     $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId(self::$cookie->id_customer), self::$cookie->id_lang);
     ${${"GLOBALS"}["rdjljzvgrdb"]} = "";
     if (Module::isInstalled("agilesellerlistoptions")) {
         $hgftvrqbcr = "pay_options_link";
         include_once _PS_ROOT_DIR_ . "/modules/agilesellerlistoptions/agilesellerlistoptions.php";
         ${${"GLOBALS"}["nbpjcibnley"]} = new AgileSellerListOptions();
         ${${"GLOBALS"}["rdjljzvgrdb"]} = $aslo_module->getPayOptionLink($this->sellerinfo->id_seller);
         self::$smarty->assign(array("pay_options_link" => ${$hgftvrqbcr}));
     }
     $this->assignCountries();
     $this->getActiveProduct();
     self::$smarty->assign("all_languages", Language::getLanguages(false));
     $this->setTemplate("sellerproductdetail.tpl");
 }
 public function initContent()
 {
     ${"GLOBALS"}["wcbwhorf"] = "id_order";
     parent::initContent();
     if (!(${${"GLOBALS"}["tdrhijkvhp"]} = (int) Tools::getValue("id_order")) || !Validate::isUnsignedId(${${"GLOBALS"}["wcbwhorf"]})) {
         $this->errors[] = Tools::displayError("Order ID required");
     } else {
         ${"GLOBALS"}["vtkcznmlk"] = "id_customer_seller";
         ${"GLOBALS"}["bwkdjg"] = "id_order";
         ${${"GLOBALS"}["thtbvco"]} = new Order(${${"GLOBALS"}["bwkdjg"]});
         ${"GLOBALS"}["tkggscllp"] = "order";
         ${${"GLOBALS"}["gfrblyem"]} = AgileSellerManager::getObjectOwnerID("order", $order->id);
         ${${"GLOBALS"}["taultlaseq"]} = AgileSellerManager::getLinkedSellerID($this->context->customer->id);
         if (Validate::isLoadedObject(${${"GLOBALS"}["thtbvco"]}) && ${${"GLOBALS"}["gfrblyem"]} == ${${"GLOBALS"}["vtkcznmlk"]} && ${${"GLOBALS"}["taultlaseq"]} > 0) {
             $fwsweyfqnpv = "dlv_adr_fields";
             $gcjosivnd = "carrier";
             ${"GLOBALS"}["pffjtshcnb"] = "deliveryAddressFormatedValues";
             $uztnjfwuwsv = "customizedDatas";
             $uvmwhue = "addressDelivery";
             ${"GLOBALS"}["atrcjjwf"] = "carrier";
             ${"GLOBALS"}["flawpcbih"] = "products";
             ${${"GLOBALS"}["tthrzd"]} = (int) $order->getCurrentState();
             ${$gcjosivnd} = new Carrier((int) $order->id_carrier, (int) $order->id_lang);
             ${"GLOBALS"}["rovfqvkjb"] = "addressDelivery";
             ${${"GLOBALS"}["hoviucftx"]} = new Address((int) $order->id_address_invoice);
             $mjqwhmgoyrm = "customizedDatas";
             ${"GLOBALS"}["qguglflbdd"] = "dlv_adr_fields";
             $sitqckqhoebi = "inv_adr_fields";
             $vejelhbyrbl = "addressDelivery";
             ${"GLOBALS"}["zpyvneijb"] = "addressInvoice";
             $tsvbkseunn = "dlv_adr_fields";
             ${"GLOBALS"}["cdlqrupc"] = "inv_adr_fields";
             ${${"GLOBALS"}["rovfqvkjb"]} = new Address((int) $order->id_address_delivery);
             ${$sitqckqhoebi} = AddressFormat::getOrderedAddressFields($addressInvoice->id_country);
             $shfzuivbjgg = "inv_adr_fields";
             ${${"GLOBALS"}["qguglflbdd"]} = AddressFormat::getOrderedAddressFields($addressDelivery->id_country);
             ${${"GLOBALS"}["elucej"]} = AddressFormat::getFormattedAddressFieldsValues(${${"GLOBALS"}["hoviucftx"]}, ${$shfzuivbjgg});
             ${${"GLOBALS"}["pffjtshcnb"]} = AddressFormat::getFormattedAddressFieldsValues(${${"GLOBALS"}["gkxhkddsjf"]}, ${$fwsweyfqnpv});
             $tbfgtqy = "order";
             if ($order->total_discounts > 0) {
                 $this->context->smarty->assign("total_old", (double) ($order->total_paid - $order->total_discounts));
             }
             ${"GLOBALS"}["ikavgzhqpt"] = "deliveryAddressFormatedValues";
             ${${"GLOBALS"}["flawpcbih"]} = $order->getProducts();
             ${${"GLOBALS"}["gdodxcerle"]} = Product::getAllCustomizedDatas((int) $order->id_cart);
             Product::addCustomizationPrice(${${"GLOBALS"}["umrxyqn"]}, ${$mjqwhmgoyrm});
             $buaccdx = "carrier";
             ${${"GLOBALS"}["cdmray"]} = new Customer($order->id_customer);
             ${"GLOBALS"}["betrwosx"] = "products";
             ${${"GLOBALS"}["bfrxhizen"]} = $order->getCurrentOrderState();
             ${${"GLOBALS"}["sslziuxrs"]} = OrderState::getOrderStates((int) $this->context->language->id);
             ${"GLOBALS"}["bwcmquq"] = "addressInvoice";
             $this->context->smarty->assign(array("order_states" => ${${"GLOBALS"}["sslziuxrs"]}));
             $this->context->smarty->assign(array("shop_name" => strval(Configuration::get("PS_SHOP_NAME")), "order" => ${${"GLOBALS"}["thtbvco"]}, "return_allowed" => (int) $order->isReturnable(), "currency" => new Currency($order->id_currency), "order_cur_state" => (int) ${${"GLOBALS"}["tthrzd"]}, "invoiceAllowed" => (int) Configuration::get("PS_INVOICE"), "invoice" => OrderState::invoiceAvailable(${${"GLOBALS"}["tthrzd"]}) && $order->invoice_number, "order_history" => $order->getHistory($this->context->language->id, false, true), "products" => ${${"GLOBALS"}["betrwosx"]}, "discounts" => $order->getCartRules(), "carrier" => ${${"GLOBALS"}["atrcjjwf"]}, "address_invoice" => ${${"GLOBALS"}["bwcmquq"]}, "invoiceState" => Validate::isLoadedObject(${${"GLOBALS"}["zpyvneijb"]}) && $addressInvoice->id_state ? new State($addressInvoice->id_state) : false, "address_delivery" => ${$uvmwhue}, "inv_adr_fields" => ${${"GLOBALS"}["cdlqrupc"]}, "dlv_adr_fields" => ${$tsvbkseunn}, "invoiceAddressFormatedValues" => ${${"GLOBALS"}["elucej"]}, "deliveryAddressFormatedValues" => ${${"GLOBALS"}["ikavgzhqpt"]}, "deliveryState" => Validate::isLoadedObject(${${"GLOBALS"}["gkxhkddsjf"]}) && $addressDelivery->id_state ? new State($addressDelivery->id_state) : false, "is_guest" => false, "messages" => CustomerMessage::getMessagesByOrderId((int) $order->id, false), "CUSTOMIZE_FILE" => Product::CUSTOMIZE_FILE, "CUSTOMIZE_TEXTFIELD" => Product::CUSTOMIZE_TEXTFIELD, "isRecyclable" => Configuration::get("PS_RECYCLABLE_PACK"), "use_tax" => Configuration::get("PS_TAX"), "group_use_tax" => Group::getPriceDisplayMethod($customer->id_default_group) == PS_TAX_INC, "customizedDatas" => ${$uztnjfwuwsv}));
             if ($carrier->url && $order->shipping_number) {
                 $this->context->smarty->assign("followup", str_replace("@", $order->shipping_number, $carrier->url));
             }
             $this->context->smarty->assign("HOOK_ORDERDETAILDISPLAYED", Hook::exec("displayOrderDetail", array("order" => ${${"GLOBALS"}["thtbvco"]})));
             Hook::exec("actionOrderDetail", array("carrier" => ${${"GLOBALS"}["tvqrewgc"]}, "order" => ${$tbfgtqy}));
             unset(${$buaccdx}, ${${"GLOBALS"}["hoviucftx"]}, ${$vejelhbyrbl});
         } else {
             $this->errors[] = Tools::displayError("Cannot find this order");
         }
         unset(${${"GLOBALS"}["tkggscllp"]});
     }
     self::$smarty->assign(array("seller_tab_id" => 4));
     $this->setTemplate("sellerorderdetail.tpl");
 }
 public function initContent()
 {
     parent::initContent();
     $drmsovcflhye = "default_shop";
     ${${"GLOBALS"}["jdvygpdab"]} = new Shop(Configuration::get("PS_SHOP_DEFAULT"));
     $abkueg = "seller_shop";
     $yjfmulvwuk = "seller_shop";
     ${$abkueg} = new Shop($this->sellerinfo->id_shop);
     ${${"GLOBALS"}["ppeuxuxmi"]} = new ShopUrl(Shop::get_main_url_id($seller_shop->id));
     $kfitqvuwyww = "seller_shopurl";
     self::$smarty->assign(array("default_shop" => ${$drmsovcflhye}, "seller_shop" => ${$yjfmulvwuk}, "seller_shopurl" => ${$kfitqvuwyww}, "sellertypes" => Module::isINstalled("agilemultipleshop") ? SellerType::getSellerTypes($this->context->language->id, $this->l('Please choose seller type')) : array()));
     $this->assignCountries();
     $this->assignVatNumber();
     $this->assignAddressFormat();
     $this->getImages();
     $this->getLanguage();
     $this->getLang();
     $this->setTemplate("sellerbusiness.tpl");
 }
Exemple #12
0
 public function initContent()
 {
     ${"GLOBALS"}["gwrkxduxejc"] = "paymentinfo_agilepaybycheque";
     ${"GLOBALS"}["imuqpjhmir"] = "pay_options_link";
     ${"GLOBALS"}["qafkucggq"] = "paymentinfo_bankwire";
     parent::initContent();
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $jtkhdmnjigg = "paymentinfo_cod";
     $wzifahhnsnu = "paymentinfo_bankwire";
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/AgileSellerPaymentInfo.php";
     $hsznsfw = "paymentinfo_bankwire";
     ${${"GLOBALS"}["ztmujejepnz"]} = new SellerInfo(SellerInfo::getIdByCustomerId(self::$cookie->id_customer), self::$cookie->id_lang);
     ${${"GLOBALS"}["hwlygpy"]} = new AgileSellerPaymentInfo();
     $sisljdrpdf = "paymentinfo_paypal";
     ${${"GLOBALS"}["hwlygpy"]} = $paymentinfo_paypal->getForSellerByModuleName("agilepaypal", $sellerinfo->id_seller);
     if (!Validate::isLoadedObject(${${"GLOBALS"}["hwlygpy"]})) {
         ${${"GLOBALS"}["hwlygpy"]} = new AgileSellerPaymentInfo();
         $paymentinfo_paypal->id = 0;
         $paymentinfo_paypal->id_seller = $sellerinfo->id_seller;
     }
     ${${"GLOBALS"}["hocodd"]} = new AgileSellerPaymentInfo();
     ${${"GLOBALS"}["hocodd"]} = $paymentinfo_gcheckout->getForSellerByModuleName("googlecheckout", $sellerinfo->id_seller);
     if (!Validate::isLoadedObject(${${"GLOBALS"}["hocodd"]})) {
         ${"GLOBALS"}["svywoqdxi"] = "paymentinfo_gcheckout";
         ${${"GLOBALS"}["svywoqdxi"]} = new AgileSellerPaymentInfo();
         $paymentinfo_gcheckout->id = 0;
         $paymentinfo_gcheckout->id_seller = $sellerinfo->id_seller;
     }
     ${${"GLOBALS"}["jqzbfmfot"]} = new AgileSellerPaymentInfo();
     ${$wzifahhnsnu} = $paymentinfo_bankwire->getForSellerByModuleName("bankwire", $sellerinfo->id_seller);
     if (!Validate::isLoadedObject(${$hsznsfw})) {
         $gzmmqfv = "paymentinfo_bankwire";
         ${$gzmmqfv} = new AgileSellerPaymentInfo();
         $paymentinfo_bankwire->id = 0;
         $paymentinfo_bankwire->id_seller = $sellerinfo->id_seller;
     }
     ${"GLOBALS"}["aocfrjqsk"] = "paymentinfo_cod";
     ${"GLOBALS"}["uqpwejuswo"] = "paymentinfo_agilepaybycheque";
     ${${"GLOBALS"}["rsyhfgg"]} = new AgileSellerPaymentInfo();
     ${${"GLOBALS"}["aocfrjqsk"]} = $paymentinfo_cod->getForSellerByModuleName("agilecashondelivery", $sellerinfo->id_seller);
     if (!Validate::isLoadedObject(${$jtkhdmnjigg})) {
         ${"GLOBALS"}["uurhbhzqimc"] = "paymentinfo_cod";
         ${${"GLOBALS"}["uurhbhzqimc"]} = new AgileSellerPaymentInfo();
         $paymentinfo_cod->id = 0;
         $paymentinfo_cod->id_seller = $sellerinfo->id_seller;
     }
     ${${"GLOBALS"}["uqpwejuswo"]} = new AgileSellerPaymentInfo();
     ${${"GLOBALS"}["swrqbqopsma"]} = $paymentinfo_agilepaybycheque->getForSellerByModuleName("agilepaybycheque", $sellerinfo->id_seller);
     if (!Validate::isLoadedObject(${${"GLOBALS"}["swrqbqopsma"]})) {
         $gnrcsyof = "paymentinfo_agilepaybycheque";
         ${$gnrcsyof} = new AgileSellerPaymentInfo();
         $paymentinfo_agilepaybycheque->id = 0;
         $paymentinfo_agilepaybycheque->id_seller = $sellerinfo->id_seller;
     }
     self::$smarty->assign(array("seller_tab_id" => 5, "paymentinfo_paypal" => ${$sisljdrpdf}, "paymentinfo_cod" => ${${"GLOBALS"}["rsyhfgg"]}, "paymentinfo_gcheckout" => ${${"GLOBALS"}["hocodd"]}, "paymentinfo_bankwire" => ${${"GLOBALS"}["qafkucggq"]}, "paymentinfo_agilepaybycheque" => ${${"GLOBALS"}["gwrkxduxejc"]}, "is_agilebankwire_installed" => Module::isInstalled("agilebankwire"), "is_agilecashondelivery_installed" => Module::isInstalled("agilecashondelivery"), "is_agilegooglecheckout_installed" => Module::isInstalled("agilegooglecheckout"), "is_agilepaybycheque_installed" => Module::isInstalled("agilepaybycheque")));
     ${${"GLOBALS"}["imuqpjhmir"]} = "";
     if (Module::isInstalled("agilesellerlistoptions")) {
         include_once _PS_ROOT_DIR_ . "/modules/agilesellerlistoptions/agilesellerlistoptions.php";
         $fnynqlxpat = "aslo_module";
         ${$fnynqlxpat} = new AgileSellerListOptions();
         ${${"GLOBALS"}["lflbiepri"]} = $aslo_module->getPayOptionLink($sellerinfo->id_seller);
         self::$smarty->assign(array("pay_options_link" => ${${"GLOBALS"}["lflbiepri"]}));
     }
     $this->setTemplate("sellerpayments.tpl");
 }