Ejemplo n.º 1
1
 public function getFooter()
 {
     $parent_footer = parent::getFooter();
     if (!isset($this->order) or !Validate::isLoadedObject($this->order)) {
         return $parent_footer;
     }
     if (!Module::isInstalled('agilemultipleseller')) {
         return $parent_footer;
     }
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $id_seller = AgileSellerManager::getObjectOwnerID('order', $this->order->id);
     $sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller), $this->order->id_lang);
     $id_lang = intval(Configuration::get('PS_COUNTRY_DEFAULT'));
     $this->smarty->assign(array('seller_name' => $sellerinfo->company, 'seller_address' => $sellerinfo->fulladdress($id_lang), 'seller_fax' => $sellerinfo->fax, 'seller_phone' => $sellerinfo->phone, 'sellerinfo' => $sellerinfo));
     return $this->smarty->fetch($this->getTemplate('footer'));
 }
Ejemplo n.º 2
0
 public static function getHomeMetas($id_lang, $page_name)
 {
     if (!Module::isInstalled('agilemultipleshop') || !Module::isInstalled('agilemultipleseller')) {
         return parent::getHomeMetas($id_lang, $page_name);
     }
     if (Shop::$id_shop_owner <= 1) {
         return parent::getHomeMetas($id_lang, $page_name);
     }
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $id_sellerinfo = SellerInfo::getIdBSellerId(Shop::$id_shop_owner);
     $sellerinfo = new SellerInfo($id_sellerinfo, $id_lang);
     $metas = Meta::getMetaByPage($page_name, $id_lang);
     $ret['meta_title'] = !empty($sellerinfo->meta_title) ? $sellerinfo->meta_title : $sellerinfo->company;
     $ret['meta_description'] = !empty($sellerinfo->meta_description) ? $sellerinfo->meta_description : '';
     $ret['meta_keywords'] = !empty($sellerinfo->meta_keywords) ? $sellerinfo->meta_description : '';
     return $ret;
 }
Ejemplo n.º 3
0
 public function init()
 {
     if (Module::isInstalled('agilemultipleshop') && Shop::$id_shop_owner > 0) {
         $this->display_column_left = (int) Configuration::get('ASP_HOME_COLUMN_LEFT') == 1;
         $this->display_column_right = (int) Configuration::get('ASP_HOME_COLUMN_RIGHT') == 1;
     }
     parent::init();
     if (Module::isInstalled('agilemultipleshop') && Shop::$id_shop_owner > 0) {
         $this->productSort();
         require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php";
         require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         require_once _PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php";
         $this->id_seller = (int) Tools::getValue('id_seller');
         if (_PS_VERSION_ > '1.5' and $this->id_seller <= 0) {
             $this->id_seller = Shop::$id_shop_owner;
         }
         if ($this->id_seller) {
             $this->seller = new Employee($this->id_seller);
             $this->seller_info = new SellerInfo(SellerInfo::getIdBSellerId($this->id_seller), self::$cookie->id_lang);
         }
     }
 }
Ejemplo n.º 4
0
 public function renderForm()
 {
     global $cookie;
     ${"GLOBALS"}["uwnclc"] = "sellerinfo";
     $bmgitbrqeuu = "modules";
     ${"GLOBALS"}["wgdkpcgommt"] = "modules";
     if (!(${${"GLOBALS"}["xeglymvvpvoh"]} = $this->loadObject(true))) {
         return;
     }
     ${"GLOBALS"}["cmwmre"] = "labels";
     $mobaqoqkpbc = "modules";
     $lkpwvshwx = "modules";
     ${"GLOBALS"}["owcninq"] = "modules";
     ${$mobaqoqkpbc} = array();
     ${$bmgitbrqeuu}[] = array("name" => "", "desc" => "--");
     ${${"GLOBALS"}["gqijjcqhgij"]}[] = array("name" => "agilepaypal", "desc" => "Agile Paypal or Agile Paypal Adative");
     if (Module::isInstalled("agilebankwire")) {
         ${${"GLOBALS"}["owcninq"]}[] = array("name" => "bankwire", "desc" => "Aigle Bank Wire");
     }
     if (Module::isInstalled("agilegooglecheckout")) {
         ${${"GLOBALS"}["gqijjcqhgij"]}[] = array("name" => "googlecheckout", "desc" => "Agile Google Checkout");
     }
     ${"GLOBALS"}["eoyekwrdgm"] = "tokenSellerinfo";
     if (Module::isInstalled("agilepaybycheque")) {
         ${${"GLOBALS"}["wgdkpcgommt"]}[] = array("name" => "agilepaybycheque", "desc" => "Agile Pay by check");
     }
     if (Module::isInstalled("agilecashondelivery")) {
         ${${"GLOBALS"}["gqijjcqhgij"]}[] = array("name" => "agilecashondelivery", "desc" => "Aigle Cash On Delivery");
     }
     ${${"GLOBALS"}["cmwmre"]} = "\n\t\t\tvar labels = {\n\t\t\t\tagilepaypal: {info1:\"" . $this->l('Paypal Address:') . "\",info2:\"N/A\",info3:\"N/A\",info4:\"N/A\",info5:\"N/A\" } \n\t\t\t\t,bankwire: {info1:\"" . $this->l('Account Owner:') . "\",info2:\"" . $this->l('Details:') . "\",info3:\"" . $this->l('Bank address:') . "\",info4:\"N/A\",info5:\"N/A\"}\n\t\t\t\t,googlecheckout: {info1:\"" . $this->l('Merchant ID:') . "\",info2:\"" . $this->l('Merchant Key:') . "\",info3:\"N/A\",info4:\"N/A\",info5:\"N/A\"}\n\t\t\t\t,agilepaybycheque: {info1:\"" . $this->l('To the order of:') . "\",info2:\"" . $this->l('Address:') . "\",info3:\"N/A\",info4:\"N/A\",info5:\"N/A\"}\n\t\t\t\t,agilecashondelivery: {info1:\"" . $this->l('Notes at order:') . "\",info2:\"N/A\",info3:\"N/A\",info4:\"N/A\",info5:\"N/A\"} \n\t\t\t };\t\t\n\t\t";
     $this->fields_form = array("legend" => array("title" => $this->l('Seller Payment Info'), "image" => "../img/admin/tab-customers.gif"), "input" => array(array("type" => "text_sellerinfo", "label" => $this->l('Seller:'), "name" => "id_sellerinfo", "size" => 33, "required" => false), array("type" => "select", "label" => $this->l('Payment Module:'), "name" => "module_name", "options" => array("query" => ${$lkpwvshwx}, "id" => "name", "name" => "desc"), "required" => false), array("type" => "checkbox", "name" => "in_use", "values" => array("query" => array(array("id" => "on", "name" => $this->l('In Use'), "val" => "1")), "id" => "id", "name" => "name"), "required" => false), array("type" => "textarea", "label" => $this->l('Field 1:'), "name" => "info1", "rows" => 3, "cols" => 100, "required" => false), array("type" => "textarea", "label" => $this->l('Field 2:'), "name" => "info2", "rows" => 3, "cols" => 100, "required" => false), array("type" => "textarea", "label" => $this->l('Field 3:'), "name" => "info3", "rows" => 3, "cols" => 100, "required" => false), array("type" => "textarea", "label" => $this->l('Field 4:'), "name" => "info4", "size" => 33, "required" => false), array("type" => "textarea", "label" => $this->l('Field 5:'), "name" => "info5", "rows" => 3, "cols" => 100, "required" => false)));
     $this->fields_form["submit"] = array("title" => $this->l('Save'), "class" => "btn btn-default pull-right");
     ${${"GLOBALS"}["mdpjsyd"]} = new SellerInfo(SellerInfo::getIdBSellerId($this->object->id_seller));
     ${${"GLOBALS"}["eoyekwrdgm"]} = Tools::getAdminToken("AdminSellerinfos" . (int) Tab::getIdFromClassName("AdminSellerinfos") . (int) $this->context->employee->id);
     $this->tpl_form_vars = array("agilemultipleseller_views" => _PS_ROOT_DIR_ . "/modules/agilemultipleseller/views/", "base_dir" => _PS_BASE_URL_ . __PS_BASE_URI__, "base_dir_ssl" => _PS_BASE_URL_SSL_ . __PS_BASE_URI__, "sellerinfo" => ${${"GLOBALS"}["uwnclc"]}, "tokenSellerinfo" => ${${"GLOBALS"}["fwqgvgb"]}, "sellers" => AgileSellerManager::getSellersNV(true, "--"), "is_seller" => $cookie->profile == (int) Configuration::get("AGILE_MS_PROFILE_ID"), "labels" => ${${"GLOBALS"}["krpmgdw"]});
     $this->fields_value = array("in_use_on" => $this->getFieldValue(${${"GLOBALS"}["xeglymvvpvoh"]}, "in_use"));
     return parent::renderForm();
 }
Ejemplo n.º 5
0
 public static function get_current_logged_seller_home_category_id()
 {
     if (!Module::isInstalled("agilemultipleseller")) {
         return 0;
     }
     ${"GLOBALS"}["pzvnnqi"] = "id_seller";
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     ${${"GLOBALS"}["tpubctvvlkrd"]} = AgileSellerManager::current_logged_seller_id();
     if (${${"GLOBALS"}["pzvnnqi"]} <= 0) {
         return 0;
     }
     ${${"GLOBALS"}["qwrpbc"]} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["tpubctvvlkrd"]}));
     if ($sellerinfo->id_category_default <= 2) {
         return 0;
     }
     ${${"GLOBALS"}["ykrvqmx"]} = new Category($sellerinfo->id_category_default, Context::getContext()->language->id);
     if (!Validate::isLoadedObject(${${"GLOBALS"}["ykrvqmx"]})) {
         return 0;
     }
     return $sellerinfo->id_category_default;
 }
 public static function sendNewProductEmail($id_product)
 {
     $xggjsvkh = "configuration";
     global $cookie;
     ${"GLOBALS"}["xbjyuoys"] = "temp_folder";
     ${"GLOBALS"}["vjxxjrtfrf"] = "id_lang";
     $xinjhagz = "id_product";
     ${$xggjsvkh} = Configuration::getMultiple(array("PS_SHOP_EMAIL", "PS_SHOP_NAME"));
     if (intval(Configuration::get("AGILE_MS_PRODUCT_APPROVAL")) != 1) {
         return;
     }
     $cqsinufwsm = "companyName";
     ${"GLOBALS"}["okfxuwdv"] = "product";
     ${${"GLOBALS"}["cloygkl"]} = new Product(${${"GLOBALS"}["jcoawuufl"]}, false, $cookie->id_lang);
     $etqhqhju = "employee";
     ${${"GLOBALS"}["qdndcj"]} = AgileSellerManager::getObjectOwnerID("product", ${$xinjhagz});
     ${"GLOBALS"}["ysdqyel"] = "employee";
     $xmedjmaw = "iso";
     ${"GLOBALS"}["nuyqlbamq"] = "companyName";
     $uvjwwq = "sellerinfo";
     ${${"GLOBALS"}["ysdqyel"]} = new Employee(${${"GLOBALS"}["qdndcj"]});
     $jlkaces = "temp_folder";
     if (!Validate::isLoadedObject(${$etqhqhju}) or !Validate::isLoadedObject(${${"GLOBALS"}["okfxuwdv"]})) {
         return;
     }
     $ghlvsitdsd = "iso";
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     ${$uvjwwq} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["qdndcj"]}), $cookie->id_lang);
     ${${"GLOBALS"}["xqwnedvrkeb"]} = $cookie->id_lang;
     ${$xmedjmaw} = Language::getIsoById(${${"GLOBALS"}["vjxxjrtfrf"]});
     ${${"GLOBALS"}["xipiacxo"]} = $sellerinfo->company;
     if (empty(${${"GLOBALS"}["nuyqlbamq"]})) {
         ${${"GLOBALS"}["xipiacxo"]} = $employee->firstName + $employee->lastName;
     }
     ${${"GLOBALS"}["tkxwrio"]} = array("{seller_company}" => ${$cqsinufwsm}, "{seller_id}" => $employee->id, "{product_name}" => $product->name, "{product_id}" => $product->id, "{shop_name}" => Configuration::get("PS_SHOP_NAME"), "{shop_url}" => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__, "{shop_logo}" => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ . "img/logo.jpg");
     ${"GLOBALS"}["tzzidbejopm"] = "temp_folder";
     ${$jlkaces} = _PS_ROOT_DIR_ . "/modules/agilemultipleseller/mails/";
     if (!file_exists(${${"GLOBALS"}["tzzidbejopm"]} . ${${"GLOBALS"}["gkzsuno"]} . "/new_product.txt") or !file_exists(${${"GLOBALS"}["xbjyuoys"]} . ${${"GLOBALS"}["gkzsuno"]} . "/new_product.html")) {
         $hmfysdpkb = "iso";
         ${"GLOBALS"}["nzwsvuszmn"] = "id_lang";
         ${${"GLOBALS"}["xqwnedvrkeb"]} = (int) Configuration::get("PS_LANG_DEFAULT");
         ${$hmfysdpkb} = Language::getIsoById(${${"GLOBALS"}["nzwsvuszmn"]});
     }
     if (file_exists(${${"GLOBALS"}["qrcgvjrrwwd"]} . ${$ghlvsitdsd} . "/new_product.txt") and file_exists(${${"GLOBALS"}["qrcgvjrrwwd"]} . ${${"GLOBALS"}["gkzsuno"]} . "/new_product.html")) {
         $pnpqspg = "id_lang";
         $eoeoxctjohan = "configuration";
         $ghasalo = "templateVars";
         $folgfpf = "configuration";
         AgileMultipleSellerMailer::SendTranslateSubject(${$pnpqspg}, "new_product", ${$ghasalo}, ${$folgfpf}["PS_SHOP_EMAIL"], "Administrator", ${${"GLOBALS"}["hhrxtypttw"]}["PS_SHOP_EMAIL"], ${$eoeoxctjohan}["PS_SHOP_NAME"], NULL, NULL, ${${"GLOBALS"}["qrcgvjrrwwd"]});
     }
 }
Ejemplo n.º 7
0
 public static function get_current_logged_seller_home_category_id()
 {
     ${"GLOBALS"}["jmshhuxctr"] = "category";
     ${"GLOBALS"}["dqsyfllglj"] = "id_seller";
     ${"GLOBALS"}["bfdapv"] = "sellerinfo";
     if (!Module::isInstalled("agilemultipleseller")) {
         return 0;
     }
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $avkymxsi = "id_seller";
     ${"GLOBALS"}["ctdshgh"] = "category";
     ${$avkymxsi} = AgileSellerManager::current_logged_seller_id();
     if (${${"GLOBALS"}["pbiyrsaos"]} <= 0) {
         return 0;
     }
     ${${"GLOBALS"}["bfdapv"]} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["dqsyfllglj"]}));
     if ($sellerinfo->id_category_default <= 2) {
         return 0;
     }
     ${${"GLOBALS"}["jmshhuxctr"]} = new Category($sellerinfo->id_category_default, Context::getContext()->language->id);
     if (!Validate::isLoadedObject(${${"GLOBALS"}["ctdshgh"]})) {
         return 0;
     }
     return $sellerinfo->id_category_default;
 }
Ejemplo n.º 8
0
 public function getAgileSellerLink($id_seller, $alias = NULL, $id_lang = NULL)
 {
     if (!$id_seller) {
         return '';
     }
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller));
     $id_shopurl = Shop::get_main_url_id($sellerinfo->id_shop);
     $shopurl = new ShopUrl($id_shopurl);
     $url = $shopurl->getURL() . $this->getLangLink();
     if (Module::IsInstalled('agilemultipleshop')) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php";
         if ((int) Configuration::get('ASP_SHOP_URL_MODE') == AgileMultipleShop::SHOP_URL_MODE_DOMAIN) {
             return $url;
         }
     }
     if ($this->allow) {
         return $url;
     } else {
         return _PS_BASE_URL_SSL_ . __PS_BASE_URI__ . 'index.php?controller=agileseller&id_seller=' . (int) $id_seller;
     }
 }
Ejemplo n.º 9
0
 public static function get_current_logged_seller_home_category_id()
 {
     ${"GLOBALS"}["fqgxtnved"] = "id_seller";
     if (!Module::isInstalled("agilemultipleseller")) {
         return 0;
     }
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     ${${"GLOBALS"}["fqgxtnved"]} = AgileSellerManager::current_logged_seller_id();
     if (${${"GLOBALS"}["ghjbfbenq"]} <= 0) {
         return 0;
     }
     ${${"GLOBALS"}["fgxqhdsi"]} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["ghjbfbenq"]}));
     ${"GLOBALS"}["dpwcnuha"] = "category";
     if ($sellerinfo->id_category_default <= 2) {
         return 0;
     }
     ${${"GLOBALS"}["dpwcnuha"]} = new Category($sellerinfo->id_category_default, Context::getContext()->language->id);
     if (!Validate::isLoadedObject(${${"GLOBALS"}["xslqxxkw"]})) {
         return 0;
     }
     return $sellerinfo->id_category_default;
 }
Ejemplo n.º 10
0
     $conf = Configuration::getMultiple($conf_keys);
     return array('shop_url_mode' => Tools::getValue('shop_url_mode', array_key_exists('ASP_SHOP_URL_MODE', $conf) ? $conf['ASP_SHOP_URL_MODE'] : ''), 'shop_login_mode' => Tools::getValue('shop_login_mode', array_key_exists('ASP_SHOP_LOGIN_MODE', $conf) ? $conf['ASP_SHOP_LOGIN_MODE'] : ''), 'header_logo_mode' => Tools::getValue('header_logo_mode', array_key_exists('ASP_HEADER_LOGO_MODE', $conf) ? $conf['ASP_HEADER_LOGO_MODE'] : ''), 'home_column_left' => Tools::getValue('home_column_left', array_key_exists('ASP_HOME_COLUMN_LEFT', $conf) ? $conf['ASP_HOME_COLUMN_LEFT'] : ''), 'home_column_right' => Tools::getValue('home_column_right', array_key_exists('ASP_HOME_COLUMN_RIGHT', $conf) ? $conf['ASP_HOME_COLUMN_RIGHT'] : ''), 'sellers_block_pos' => Tools::getValue('sellers_block_pos', array_key_exists('ASP_SELLERS_BLOCK_POSITION', $conf) ? $conf['ASP_SELLERS_BLOCK_POSITION'] : ''), 'sellerNbr' => Tools::getValue('sellerNbr', array_key_exists('ASP_SELLER_NBR', $conf) ? $conf['ASP_SELLER_NBR'] : ''), 'sellers_block_style' => Tools::getValue('sellers_block_style', array_key_exists('ASP_SELLERS_BLOCK_STYLE', $conf) ? $conf['ASP_SELLERS_BLOCK_STYLE'] : ''), 'sellers_block_virtualshop' => Tools::getValue('sellers_block_virtualshop', array_key_exists('ASP_SELLERS_BLOCK_VIRTUALSHOP', $conf) ? $conf['ASP_SELLERS_BLOCK_VIRTUALSHOP'] : ''), 'location_block_pos' => Tools::getValue('location_block_pos', array_key_exists('ASP_LOCATION_BLOCK_POSITION', $conf) ? $conf['ASP_LOCATION_BLOCK_POSITION'] : ''), 'location_block_style' => Tools::getValue('location_block_style', array_key_exists('ASP_LOCATION_BLOCK_STYLE', $conf) ? $conf['ASP_LOCATION_BLOCK_STYLE'] : ''), 'location_block_level' => Tools::getValue('location_block_level', array_key_exists('ASP_LOCATION_BLOCK_LEVEL', $conf) ? $conf['ASP_LOCATION_BLOCK_LEVEL'] : ''), 'location_block_virtualshop' => Tools::getValue('location_block_virtualshop', array_key_exists('ASP_LOCATION_BLOCK_VIRTUALSHOP', $conf) ? $conf['ASP_LOCATION_BLOCK_VIRTUALSHOP'] : ''), 'url_choice_cat' => Tools::getValue('url_choice_cat', array_key_exists('ASP_URL_CHOICE_CAT', $conf) ? $conf['ASP_URL_CHOICE_CAT'] : ''), 'url_choice_cms' => Tools::getValue('url_choice_cms', array_key_exists('ASP_URL_CHOICE_CMS', $conf) ? $conf['ASP_URL_CHOICE_CMS'] : ''));
 }
 public function hookBreadcrumbShops()
 {
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId(Shop::$id_shop_owner), $this->context->cookie->id_lang);
     $main_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
Ejemplo n.º 11
0
 public static function sendSellerReply($operator_name)
 {
     ${"GLOBALS"}["cshohjjk"] = "iso";
     ${"GLOBALS"}["fdlwtqqqf"] = "iso";
     global $cookie;
     ${"GLOBALS"}["lviroybng"] = "id_seller";
     ${"GLOBALS"}["igmievrmx"] = "id_lang";
     ${"GLOBALS"}["enihlibywlot"] = "reply_message";
     $vgyzbncx = "org_message";
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     ${"GLOBALS"}["zymlumtphs"] = "templateVars";
     ${${"GLOBALS"}["zoconsk"]} = array();
     $rjegfmvgr = "reply_message";
     ${${"GLOBALS"}["inowumm"]} = Tools::getValue("reply_message");
     $gjcdjbfwkqvf = "seller_email";
     if (empty(${${"GLOBALS"}["enihlibywlot"]})) {
         ${${"GLOBALS"}["zoconsk"]}[] = $this->l('Reply message cannot be empty.');
         return;
     }
     ${"GLOBALS"}["ztpgzxclyfb"] = "errs";
     ${$vgyzbncx} = new AgileSellerMessage(Tools::getValue("id_agile_sellermessage"));
     $kwzbnnrr = "id_lang";
     ${${"GLOBALS"}["ihicvjpboh"]} = intval($org_message->id_seller);
     ${"GLOBALS"}["fsjcnwaxxhr"] = "hide_email";
     ${"GLOBALS"}["jbxgznhslu"] = "template";
     if (${${"GLOBALS"}["lviroybng"]} > 0) {
         $sbnxtyxkjnx = "sellerinfo";
         ${$sbnxtyxkjnx} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["ihicvjpboh"]}), $cookie->id_lang);
         ${${"GLOBALS"}["gytphbi"]} = new Customer($sellerinfo->id_customer);
         ${${"GLOBALS"}["ugiotrapn"]} = $sellerlnkedcustomer->email;
         ${${"GLOBALS"}["ushosrbo"]} = $sellerinfo->company;
     } else {
         ${${"GLOBALS"}["ushosrbo"]} = Configuration::get("PS_SHOP_NAME");
         ${${"GLOBALS"}["ugiotrapn"]} = Configuration::get("PS_SHOP_EMAIL");
     }
     ${"GLOBALS"}["ybslviw"] = "seller_email";
     $ottsxpce = "seller_name";
     ${${"GLOBALS"}["onxgkz"]} = Configuration::get("ASMGER_DONOTREPLY_EMAIL");
     ${${"GLOBALS"}["swryjfvdb"]} = intval(Configuration::get("ASMGER_HIDE_EMAIL"));
     $nscqkytpjk = "iso";
     if (${${"GLOBALS"}["fsjcnwaxxhr"]}) {
         ${${"GLOBALS"}["hwmgcsiehbfr"]} = ${${"GLOBALS"}["onxgkz"]};
     } else {
         ${${"GLOBALS"}["hwmgcsiehbfr"]} = ${$gjcdjbfwkqvf};
     }
     $hmzkqcfovg = "reply_message";
     $svgguicotfu = "reply_message";
     ${$svgguicotfu} .= "\n";
     $dlenxnyvmyu = "lines";
     ${${"GLOBALS"}["iztfep"]} = explode("\n", $org_message->message);
     ${"GLOBALS"}["zkoocbisnhs"] = "template";
     foreach (${$dlenxnyvmyu} as ${${"GLOBALS"}["zguejsolol"]}) {
         ${${"GLOBALS"}["inowumm"]} .= ">" . ${${"GLOBALS"}["zguejsolol"]} . "\n";
     }
     ${${"GLOBALS"}["jbxgznhslu"]} = "mtocustomer";
     ${${"GLOBALS"}["zymlumtphs"]} = array("{seller_name}" => ${$ottsxpce}, "{shop_name}" => Configuration::get("PS_SHOP_NAME"), "{shop_url}" => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__, "{message}" => str_replace("\n", "<br />", ${$rjegfmvgr}));
     ${$kwzbnnrr} = $cookie->id_lang;
     ${${"GLOBALS"}["vqsvjvnyrtt"]} = $org_message->subject;
     ${${"GLOBALS"}["cshohjjk"]} = Language::getIsoById((int) ${${"GLOBALS"}["igmievrmx"]});
     if (file_exists(dirname(__FILE__) . "/mails/" . ${${"GLOBALS"}["fdlwtqqqf"]} . "/" . ${${"GLOBALS"}["zkoocbisnhs"]} . ".txt") and file_exists(dirname(__FILE__) . "/mails/" . ${$nscqkytpjk} . "/" . ${${"GLOBALS"}["ppciqc"]} . ".html")) {
         $cftdlqfrba = "template";
         $pbsuncwqd = "templateVars";
         $gbitnvysv = "from_email";
         ${"GLOBALS"}["ftaxgwkbr"] = "seller_name";
         $kpemrmhpv = "from_email";
         $dqleqikft = "subject";
         Mail::Send(${${"GLOBALS"}["ohoeks"]}, ${${"GLOBALS"}["ppciqc"]}, ${${"GLOBALS"}["vqsvjvnyrtt"]}, ${${"GLOBALS"}["rndqhylugl"]}, $org_message->from_email, NULL, ${$kpemrmhpv}, ${${"GLOBALS"}["ftaxgwkbr"]}, NULL, NULL, dirname(__FILE__) . "/mails/");
         if (intval(Configuration::get("ASMGER_EMAIL_COPYADMIN")) > 0) {
             Mail::Send(${${"GLOBALS"}["ohoeks"]}, ${$cftdlqfrba}, ${$dqleqikft}, ${$pbsuncwqd}, Configuration::get("PS_SHOP_EMAIL"), NULL, ${$gbitnvysv}, ${${"GLOBALS"}["ushosrbo"]}, NULL, NULL, dirname(__FILE__) . "/mails/");
         }
     }
     ${${"GLOBALS"}["agnwbbnejad"]} = new AgileSellerMessage($org_message->id);
     $message->id = 0;
     $message->is_customer_message = 0;
     $message->ip_address = $_SERVER["REMOTE_ADDR"];
     $message->from_email = ${${"GLOBALS"}["ybslviw"]};
     $message->from_name = ${${"GLOBALS"}["ushosrbo"]};
     $message->message = ${$hmzkqcfovg};
     if (intval(Configuration::get("ASMGER_APPROVAL_REQUIRED"))) {
         $message->active = 0;
     } else {
         $message->active = 1;
     }
     ${"GLOBALS"}["etuzzhts"] = "reply_message";
     $message->message = ${${"GLOBALS"}["etuzzhts"]};
     $message->save();
     return ${${"GLOBALS"}["ztpgzxclyfb"]};
 }
Ejemplo n.º 12
0
 public static function get_current_logged_seller_home_category_id()
 {
     if (!Module::isInstalled('agilemultipleseller')) {
         return 0;
     }
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $id_seller = AgileSellerManager::current_logged_seller_id();
     if ($id_seller <= 0) {
         return 0;
     }
     $sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller));
     if ($sellerinfo->id_category_default <= 2) {
         return 0;
     }
     $category = new Category($sellerinfo->id_category_default, Context::getContext()->language->id);
     if (!Validate::isLoadedObject($category)) {
         return 0;
     }
     return $sellerinfo->id_category_default;
 }
Ejemplo n.º 13
0
 public function hookBreadcrumbShops()
 {
     $himtax = "id_shop_owner";
     $ghnmwkrdne = "main_shop";
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $bmsxgau = "id_shop_owner";
     ${${"GLOBALS"}["xfvfjfd"]} = new SellerInfo(SellerInfo::getIdBSellerId(Shop::${$himtax}), $this->context->cookie->id_lang);
     ${$ghnmwkrdne} = new Shop(Configuration::get("PS_SHOP_DEFAULT"));
     $this->context->smarty->assign(array("seller_shop" => Shop::${$bmsxgau} > 0 ? Context::getContext()->shop : false, "isat_seller_home" => AgileHelper::getPageName() == "agileseller.php" ? 1 : 0, "seller_name" => $sellerinfo->company, "base_dir_default" => $main_shop->getBaseURL()));
     return $this->display(__FILE__, "views/templates/hook/hookbreadcrumb-shops.tpl");
 }
Ejemplo n.º 14
-1
 public static function initialize()
 {
     global $cookie;
     $shop = parent::initialize();
     if (Module::isInstalled('agilemultipleseller') and Module::isInstalled('agilemultipleshop') and $shop->id > 1) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php";
         self::$id_shop_owner = AgileSellerManager::getSellerIdByShopId($shop->id);
         self::$id_shop_virtual = $shop->id;
         self::$sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId(self::$id_shop_owner));
         $shop->id = Configuration::get('PS_SHOP_DEFAULT');
         self::$context_id_shop = $shop->id;
     }
     return $shop;
 }