예제 #1
0
 public function processData()
 {
     if (Module::isInstalled('agilemultipleshop') && Shop::$id_shop_owner > 0) {
         if (!Validate::isLoadedObject($this->seller)) {
             $this->errors[] = Tools::displayError('Seller does not exist');
         } elseif (!$this->seller->active) {
             self::$smarty->assign('seller', $this->seller);
         } else {
             $rewrited_url = self::$link->getAgileSellerLink((int) $this->seller->id, $this->getSellerLinkRwrite());
             $this->seller_info->description = _PS_VERSION_ > '1.5' ? Tools::nl2br($this->seller_info->description) : nl2br2($this->seller_info->description);
             self::$smarty->assign('seller', $this->seller);
             self::$smarty->assign('seller_info', $this->seller_info);
             $sellermodule = new AgileMultipleSeller();
             $conf = Configuration::getMultiple($sellermodule->getCustomFields());
             $custom_labels = $sellermodule->getCustomLabels();
             self::$smarty->assign('conf', $conf);
             self::$smarty->assign('custom_labels', $custom_labels);
             $nbProducts = $this->getProducts(NULL, NULL, NULL, $this->orderBy, $this->orderWay, true);
             $this->pagination((int) $nbProducts);
             self::$smarty->assign('nb_products', (int) $nbProducts);
             $seller_products = $this->getProducts((int) self::$cookie->id_lang, (int) $this->p, (int) $this->n, $this->orderBy, $this->orderWay);
             AgileHelper::AssignProductImgs($seller_products);
             $si_1531_later = version_compare(_PS_VERSION_, '1.5.3.1', ">=");
             $HOOK_SELLER_RATINGS = '';
             if (Module::isInstalled('agilesellerratings')) {
                 require_once _PS_ROOT_DIR_ . "/modules/agilesellerratings/agilesellerratings.php";
                 $rmodule = new AgileSellerRatings();
                 $HOOK_SELLER_RATINGS = $rmodule->getAverageRating($this->id_seller, AgileSellerRatings::RATING_TYPE_SELLER);
             }
             self::$smarty->assign(array('products' => (isset($seller_products) and $seller_products) ? $seller_products : NULL, 'id_seller' => (int) $this->seller->id, 'path' => $this->seller_info->company, 'agilesellerproducts_tpl' => _PS_ROOT_DIR_ . "/modules/agilesellerproducts/", 'agilemultipleshop_tpl' => _PS_ROOT_DIR_ . "/modules/agilemultipleshop/", 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'categorySize' => Image::getSize($si_1531_later ? ImageType::getFormatedName('category') : 'category'), 'mediumSize' => Image::getSize($si_1531_later ? ImageType::getFormatedName('medium') : 'medium'), 'thumbSceneSize' => Image::getSize($si_1531_later ? ImageType::getFormatedName('thumb_scene') : 'thumb_scene'), 'homeSize' => Image::getSize($si_1531_later ? ImageType::getFormatedName('home') : 'home'), 'HOOK_SELLER_RATINGS' => $HOOK_SELLER_RATINGS, 'page_name' => 'agileseller'));
             $ver = (int) str_replace(".", "", _PS_VERSION_);
             if ($ver <= 1430) {
             } else {
                 if ($ver <= 1451) {
                     if (isset(self::$cookie->id_customer)) {
                         self::$smarty->assign('compareProducts', CompareProduct::getCustomerCompareProducts((int) self::$cookie->id_customer));
                     } elseif (isset(self::$cookie->id_guest)) {
                         self::$smarty->assign('compareProducts', CompareProduct::getGuestCompareProducts((int) self::$cookie->id_guest));
                     }
                 } else {
                     if (isset(self::$cookie->id_compare)) {
                         self::$smarty->assign('compareProducts', CompareProduct::getCompareProducts((int) self::$cookie->id_compare));
                     }
                 }
             }
         }
         self::$smarty->assign(array('allow_oosp' => (int) Configuration::get('PS_ORDER_OUT_OF_STOCK'), 'comparator_max_item' => (int) Configuration::get('PS_COMPARATOR_MAX_ITEM'), 'suppliers' => Supplier::getSuppliers()));
     }
 }
예제 #2
0
 public function processData()
 {
     if (Module::isInstalled('agilemultipleshop') && Shop::$id_shop_owner > 0) {
         if (!Validate::isLoadedObject($this->seller)) {
             $this->errors[] = Tools::displayError('Seller does not exist');
         } elseif (!$this->seller->active) {
             self::$smarty->assign('seller', $this->seller);
         } else {
             $rewrited_url = self::$link->getAgileSellerLink((int) $this->seller->id, $this->getSellerLinkRwrite());
             $this->seller_info->description = _PS_VERSION_ > '1.5' ? Tools::nl2br($this->seller_info->description) : nl2br2($this->seller_info->description);
             // Setting language and language level
             $language_level = explode(',', $this->seller_info->language_level);
             $language = explode(',', $this->seller_info->language);
             $language_array = array();
             for ($x = 0; $x < count($language); $x++) {
                 $language_array[] = $language[$x] . ' - ' . $language_level[$x];
             }
             $this->seller_info->language = $language_array;
             self::$smarty->assign('seller', $this->seller);
             self::$smarty->assign('seller_info', $this->seller_info);
             $imgPath = _PS_ROOT_DIR_ . DS . 'img' . DS . 'as' . DS . $this->seller_info->id_sellerinfo;
             $licenseImg = _PS_ROOT_DIR_ . DS . 'img' . DS . 'as' . DS . $this->seller_info->id_sellerinfo . '_license';
             $images = scandir($imgPath);
             unset($images[0]);
             unset($images[1]);
             $images = array_values($images);
             @($licenseDir = scandir($licenseImg));
             $licenseExist = count($licenseDir) > 2 ? 1 : 0;
             $this->seller_info->seller_images = $images;
             $sellermodule = new AgileMultipleSeller();
             $conf = Configuration::getMultiple($sellermodule->getCustomFields());
             $custom_labels = $sellermodule->getCustomLabels();
             self::$smarty->assign('conf', $conf);
             self::$smarty->assign('custom_labels', $custom_labels);
             $nbProducts = $this->getProducts(NULL, NULL, NULL, $this->orderBy, $this->orderWay, true);
             $this->pagination((int) $nbProducts);
             self::$smarty->assign('nb_products', (int) $nbProducts);
             $seller_products = $this->getProducts((int) self::$cookie->id_lang, (int) $this->p, (int) $this->n, $this->orderBy, $this->orderWay);
             AgileHelper::AssignProductImgs($seller_products);
             $si_1531_later = version_compare(_PS_VERSION_, '1.5.3.1', ">=");
             $HOOK_SELLER_RATINGS = '';
             if (Module::isInstalled('agilesellerratings')) {
                 require_once _PS_ROOT_DIR_ . "/modules/agilesellerratings/agilesellerratings.php";
                 $rmodule = new AgileSellerRatings();
                 $HOOK_SELLER_RATINGS = $rmodule->getAverageRating($this->id_seller, AgileSellerRatings::RATING_TYPE_SELLER);
             }
             /*foreach($seller_products as $k => $v) {
             			$country = $v['country'];
             			$flagId = Country::getIdByName(1, $country);
             			$seller_products[$k]['img_exist']	= file_exists(_PS_ROOT_DIR_ . DS . 'flag' . DS . 'mini'. DS . $flagId . '.jpg')? 1 : 0;
             			$seller_products[$k]['img_name']	= $flagId . '.jpg';
             		}*/
             foreach ($seller_products as $key => $value) {
                 $seller_id = $value['id_seller'];
                 $flagIds = self::getFlagsId($seller_id);
                 foreach ($flagIds as $k => $flgId) {
                     $seller_products[$key]['img_exist'][$k] = file_exists(_PS_ROOT_DIR_ . DS . 'flag' . DS . 'mini' . DS . $flgId . '.jpg') ? 1 : 0;
                     $seller_products[$key]['img_name'][$k] = $flgId . '.jpg';
                 }
             }
             // die('<pre>' . print_r($seller_products, true));
             self::$smarty->assign(array('products' => (isset($seller_products) and $seller_products) ? $seller_products : NULL, 'license_exist' => $licenseExist, 'id_seller' => (int) $this->seller->id, 'path' => $this->seller_info->company, 'agilesellerproducts_tpl' => _PS_ROOT_DIR_ . "/modules/agilesellerproducts/", 'agilemultipleshop_tpl' => _PS_ROOT_DIR_ . "/modules/agilemultipleshop/", 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'categorySize' => Image::getSize($si_1531_later ? ImageType::getFormatedName('category') : 'category'), 'mediumSize' => Image::getSize($si_1531_later ? ImageType::getFormatedName('medium') : 'medium'), 'thumbSceneSize' => Image::getSize($si_1531_later ? ImageType::getFormatedName('thumb_scene') : 'thumb_scene'), 'homeSize' => Image::getSize($si_1531_later ? ImageType::getFormatedName('home') : 'home'), 'HOOK_SELLER_RATINGS' => $HOOK_SELLER_RATINGS, 'page_name' => 'agileseller'));
             $ver = (int) str_replace(".", "", _PS_VERSION_);
             if ($ver <= 1430) {
             } else {
                 if ($ver <= 1451) {
                     if (isset(self::$cookie->id_customer)) {
                         self::$smarty->assign('compareProducts', CompareProduct::getCustomerCompareProducts((int) self::$cookie->id_customer));
                     } elseif (isset(self::$cookie->id_guest)) {
                         self::$smarty->assign('compareProducts', CompareProduct::getGuestCompareProducts((int) self::$cookie->id_guest));
                     }
                 } else {
                     if (isset(self::$cookie->id_compare)) {
                         self::$smarty->assign('compareProducts', CompareProduct::getCompareProducts((int) self::$cookie->id_compare));
                     }
                 }
             }
         }
         self::$smarty->assign(array('allow_oosp' => (int) Configuration::get('PS_ORDER_OUT_OF_STOCK'), 'comparator_max_item' => (int) Configuration::get('PS_COMPARATOR_MAX_ITEM'), 'suppliers' => Supplier::getSuppliers()));
     }
 }
예제 #3
0
 public function displayForm()
 {
     $cufhncfg = "conf";
     ${"GLOBALS"}["ljvxdvr"] = "conf_keys";
     $bxsfaifp = "conf";
     global $cookie;
     ${${"GLOBALS"}["ljvxdvr"]} = array("AGILE_MS_SELLER_APPROVAL", "AGILE_MS_custom_SELLER", "AGILE_MS_EDIT_CATEGORY", "AGILE_MS_PAYMENT_MODE", "AGILE_MS_SELLER_TAB", "AGILE_MS_CART_MODE", "AGILE_MS_PRODUCT_APPROVAL", "AGILE_MS_SELLER_TERMS", "AGILE_MS_CUSTOMER_SELLER", "AGILE_MS_SELLER_PANEL_WITHRIGHT", "AGILE_MS_SELLER_PANEL_WITHLEFT", "AGILE_MS_ALLOW_REGISTER_ATHOME", "AGILE_MS_SELLER_BACK_OFFICE", "AGILE_MS_SELLER_INFO_THEME");
     ${${"GLOBALS"}["hshqjfegdmp"]} = array_merge(${${"GLOBALS"}["hshqjfegdmp"]}, AgileMultipleSeller::getCustomFields());
     ${$cufhncfg} = Configuration::getMultiple(${${"GLOBALS"}["hshqjfegdmp"]});
     $vkpenkovav = "permissiontabid";
     ${${"GLOBALS"}["kqjeegayb"]} = Tools::getValue("seller_tab", array_key_exists("AGILE_MS_SELLER_TAB", ${${"GLOBALS"}["umntfbicqtr"]}) ? ${$bxsfaifp}["AGILE_MS_SELLER_TAB"] : "");
     ${${"GLOBALS"}["diduefcuz"]} = Tab::getIdFromClassName("AdminAccess");
     ${${"GLOBALS"}["nkjjmcl"]} = Tools::getAdminToken("AdminAccess" . intval(${$vkpenkovav}) . intval($cookie->id_employee));
     ${${"GLOBALS"}["jybeht"]} = new Profile(intval(Configuration::get("AGILE_MS_PROFILE_ID")), $cookie->id_lang);
     if (version_compare(_PS_VERSION_, "1.5.0", "<")) {
         $this->_html .= "<div style=\"color:red;font-size:18px;\"><br>\n\t\t\t\t\t" . $this->l('This module does not work under PrestaShop 1.4x.') . "<br>\n\t\t\t\t\t" . $this->l('You are using the wrong version of the module.') . "<br>\n\t\t\t\t\t" . $this->l('Please contact support@addons-modules.com for more details.') . "<br><br>\n\t\t\t\t\t\n\t\t\t\t\t</div>";
     } else {
         ${"GLOBALS"}["tebdjdn"] = "array2_field";
         ${"GLOBALS"}["wiexhccp"] = "i";
         $this->context->controller->addCSS($this->_path . "css/agileglobal.css", "all");
         $this->context->controller->addCSS($this->_path . "css/agilemultipleseller.css", "all");
         ${${"GLOBALS"}["obbrlmm"]} = $this->getCustomLabels();
         $mkfyeue = "array4_fieldvalue";
         ${"GLOBALS"}["kauhnbewx"] = "i";
         ${${"GLOBALS"}["mnkreui"]} = array();
         ${"GLOBALS"}["omwbsquklu"] = "seller_tab";
         $imcufh = "i";
         ${${"GLOBALS"}["tebdjdn"]} = array();
         ${"GLOBALS"}["wfexxaddiy"] = "i";
         for (${${"GLOBALS"}["kauhnbewx"]} = 1; ${${"GLOBALS"}["hoqimumve"]} <= 10; ${${"GLOBALS"}["wiexhccp"]}++) {
             $yrqpesfsncc = "array2_fieldvalue";
             ${"GLOBALS"}["krxwzc"] = "key";
             $pfvgyzqkglr = "text";
             $gyuyrrvrjya = "conf";
             ${"GLOBALS"}["oefebkfx"] = "field_name";
             ${${"GLOBALS"}["krxwzc"]} = sprintf("AGILE_MS_SELLER_TEXT%s", ${${"GLOBALS"}["hoqimumve"]});
             ${"GLOBALS"}["incgmvnvb"] = "key";
             $jqvqknqhisg = "key";
             ${"GLOBALS"}["fwtfspbm"] = "conf";
             ${${"GLOBALS"}["jjjecy"]} = sprintf("ams_custom_text%s", ${${"GLOBALS"}["hoqimumve"]});
             ${"GLOBALS"}["uqnmwbmhhdw"] = "field_name";
             ${"GLOBALS"}["khcrmn"] = "text";
             ${$pfvgyzqkglr} = array_key_exists(${${"GLOBALS"}["uqnmwbmhhdw"]}, $_POST) ? $_POST[${${"GLOBALS"}["jjjecy"]}] : (array_key_exists(${${"GLOBALS"}["incgmvnvb"]}, ${$gyuyrrvrjya}) ? ${${"GLOBALS"}["fwtfspbm"]}[${$jqvqknqhisg}] : "");
             ${$yrqpesfsncc}[${${"GLOBALS"}["jjjecy"]}] = ${${"GLOBALS"}["khcrmn"]};
             array_push(${${"GLOBALS"}["xteddyw"]}, array("id" => ${${"GLOBALS"}["oefebkfx"]}, "name" => ${${"GLOBALS"}["jjjecy"]}, "label" => ${${"GLOBALS"}["obbrlmm"]}[${${"GLOBALS"}["jjjecy"]}]));
         }
         ${"GLOBALS"}["ubqssnk"] = "lang";
         ${"GLOBALS"}["rmdjxwl"] = "profile";
         ${${"GLOBALS"}["brfuori"]} = array();
         $wgqdrawwvsd = "array2_field";
         ${${"GLOBALS"}["ixehsvr"]} = array();
         $ctgbmqvvw = "array5_field";
         for (${${"GLOBALS"}["hoqimumve"]} = 1; ${${"GLOBALS"}["hoqimumve"]} <= 2; ${${"GLOBALS"}["hoqimumve"]}++) {
             $jbftdltdb = "conf";
             ${"GLOBALS"}["hrjqpvc"] = "i";
             ${"GLOBALS"}["fddlvewegc"] = "field_name";
             ${"GLOBALS"}["hprsmop"] = "field_name";
             $befumlspkc = "key";
             ${"GLOBALS"}["dejuonhbmue"] = "html";
             ${${"GLOBALS"}["olbxneb"]} = sprintf("AGILE_MS_SELLER_HTML%s", ${${"GLOBALS"}["hrjqpvc"]});
             ${"GLOBALS"}["yqqoyjifydk"] = "field_name";
             $vevbokofmkr = "field_name";
             ${${"GLOBALS"}["jjjecy"]} = sprintf("ams_custom_html%s", ${${"GLOBALS"}["hoqimumve"]});
             $xjdpdika = "field_name";
             ${${"GLOBALS"}["pmakfob"]} = array_key_exists(${${"GLOBALS"}["hprsmop"]}, $_POST) ? $_POST[${${"GLOBALS"}["yqqoyjifydk"]}] : (array_key_exists(${${"GLOBALS"}["olbxneb"]}, ${$jbftdltdb}) ? ${${"GLOBALS"}["umntfbicqtr"]}[${$befumlspkc}] : "");
             ${${"GLOBALS"}["brfuori"]}[${$xjdpdika}] = ${${"GLOBALS"}["dejuonhbmue"]};
             array_push(${${"GLOBALS"}["ixehsvr"]}, array("id" => ${${"GLOBALS"}["jjjecy"]}, "name" => ${$vevbokofmkr}, "label" => ${${"GLOBALS"}["obbrlmm"]}[${${"GLOBALS"}["fddlvewegc"]}]));
         }
         ${$mkfyeue} = array();
         $kptflxfro = "array2_fieldvalue";
         $rtuoxbd = "i";
         ${${"GLOBALS"}["zmhmzerls"]} = array();
         for (${${"GLOBALS"}["hoqimumve"]} = 1; ${$imcufh} <= 10; ${${"GLOBALS"}["hoqimumve"]}++) {
             ${"GLOBALS"}["finegrrv"] = "html";
             ${"GLOBALS"}["saxyiemeq"] = "array4_fieldvalue";
             ${"GLOBALS"}["zeulmkl"] = "key";
             $jfyjtpglgom = "field_name";
             ${"GLOBALS"}["tmsgrnys"] = "i";
             ${"GLOBALS"}["xbqapewp"] = "i";
             ${${"GLOBALS"}["zeulmkl"]} = sprintf("AGILE_MS_SELLER_NUMBER%s", ${${"GLOBALS"}["xbqapewp"]});
             ${"GLOBALS"}["zdarvygleq"] = "key";
             $lgfyjsnoujp = "conf";
             ${"GLOBALS"}["yskkllcyevq"] = "field_name";
             ${"GLOBALS"}["xeiqmovs"] = "array4_field";
             ${${"GLOBALS"}["jjjecy"]} = sprintf("ams_custom_number%s", ${${"GLOBALS"}["tmsgrnys"]});
             ${${"GLOBALS"}["finegrrv"]} = array_key_exists(${${"GLOBALS"}["yskkllcyevq"]}, $_POST) ? $_POST[${$jfyjtpglgom}] : (array_key_exists(${${"GLOBALS"}["olbxneb"]}, ${${"GLOBALS"}["umntfbicqtr"]}) ? ${$lgfyjsnoujp}[${${"GLOBALS"}["zdarvygleq"]}] : "");
             ${${"GLOBALS"}["saxyiemeq"]}[${${"GLOBALS"}["jjjecy"]}] = ${${"GLOBALS"}["pmakfob"]};
             array_push(${${"GLOBALS"}["xeiqmovs"]}, array("id" => ${${"GLOBALS"}["jjjecy"]}, "name" => ${${"GLOBALS"}["jjjecy"]}, "label" => ${${"GLOBALS"}["obbrlmm"]}[${${"GLOBALS"}["jjjecy"]}]));
         }
         ${${"GLOBALS"}["ftilrxsmpbw"]} = array();
         ${$ctgbmqvvw} = array();
         for (${${"GLOBALS"}["wfexxaddiy"]} = 1; ${${"GLOBALS"}["hoqimumve"]} <= 5; ${$rtuoxbd}++) {
             $ulwbpd = "conf";
             $ygbqccwer = "field_name";
             ${"GLOBALS"}["tknsbexir"] = "field_name";
             ${"GLOBALS"}["tijnqbcupeuj"] = "custom_lables";
             ${"GLOBALS"}["xlkuwci"] = "conf";
             ${"GLOBALS"}["nxvgbmw"] = "html";
             ${${"GLOBALS"}["olbxneb"]} = sprintf("AGILE_MS_SELLER_DATE%s", ${${"GLOBALS"}["hoqimumve"]});
             $goomdn = "array5_field";
             ${${"GLOBALS"}["tknsbexir"]} = sprintf("ams_custom_date%s", ${${"GLOBALS"}["hoqimumve"]});
             ${${"GLOBALS"}["pmakfob"]} = array_key_exists(${${"GLOBALS"}["jjjecy"]}, $_POST) ? $_POST[${$ygbqccwer}] : (array_key_exists(${${"GLOBALS"}["olbxneb"]}, ${${"GLOBALS"}["xlkuwci"]}) ? ${$ulwbpd}[${${"GLOBALS"}["olbxneb"]}] : "");
             $bkwjsyetxiol = "array5_fieldvalue";
             ${$bkwjsyetxiol}[${${"GLOBALS"}["jjjecy"]}] = ${${"GLOBALS"}["nxvgbmw"]};
             array_push(${$goomdn}, array("id" => ${${"GLOBALS"}["jjjecy"]}, "name" => ${${"GLOBALS"}["jjjecy"]}, "label" => ${${"GLOBALS"}["tijnqbcupeuj"]}[${${"GLOBALS"}["jjjecy"]}]));
         }
         ${${"GLOBALS"}["hxfvuydgc"]} = array("form" => array("legend" => array("title" => $this->l('Settings'), "image" => $this->_path . "logo.gif"), "input" => array(array("type" => "text", "label" => $this->l('Seller Terms & Conditions'), "class" => "width10", "name" => "seller_terms", "desc" => $this->l('Please enter the CMS page ID for Seller Terms & Conditions. Enter "0" if there is no Seller Terms & Conditions.')), array("type" => "agile_radio", "label" => $this->l('Payment Collection Mode'), "name" => "payment_mode", "header" => array($this->l('This setting will affect the seller account history records and balances calculation.'), $this->l('The account history and account balance will updated at the time the order status is changed to "Payment Accepted"'), array("class" => "red", "text" => $this->l('If your payment methods do not match your settings, the account history records and account balances will be incorrect.'))), "values" => array(array("id" => "payment_mode_store", "value" => 3, "label" => $this->l('Store collects payments'), "p" => $this->l('You can use any payment modules available in your store, but you will need to pay sellers\' account balances separately.')), array("id" => "payment_mode_seller", "value" => 1, "label" => $this->l('Seller collects payments'), "p" => array($this->l('Only customized (Agile Multiple Seller integrated) payment modules are supported for this payment collection mode'), $this->l('Seller will need to pay the store for any accounts owed (commissions) separately.'))), array("id" => "payment_mode_both", "value" => 2, "label" => $this->l('Both Store and Seller collect payment '), "p" => array($this->l('Only customized (Agile Multiple Seller integrated) payment modules with split payment function are supported.<br>Payments among customers, sellers, and store are distributed automatically. No additional payment is required.'), "<a href=\"http://addons-modules.com/en/content/28-how-to-choose-payment\" style=\"color:blue;text-decoration:underline;\" target=\"_new\">" . $this->l('Click here') . "</a>&nbsp;" . $this->l('to find more information on how to set the "Payment Collection Mode" and choose payment methods correctly.'))))), array("type" => "htmlhr", "name" => "seller_term_section", "values" => array()), array("type" => "radio", "label" => $this->l('Shopping Cart Mode'), "name" => "cart_mode", "values" => array(array("id" => "cart_mode_multipleseller", "value" => 0, "label" => $this->l('Products from multiple seller')), array("id" => "cart_mode_singleseller", "value" => 1, "label" => $this->l('Product from single seller'))), "desc" => "<a href=\"http://addons-modules.com/en/content/28-how-to-choose-payment\" style=\"color:blue;text-decoration:underline;\" target=\"_new\">" . $this->l('Click here') . "</a>&nbsp;" . $this->l(' to see section "D. Payemnt collection mode, Shipping Cart mode" for more details.')), array("type" => "htmlhr", "name" => "shoppingcart_section", "values" => array()), array("type" => "checkbox", "label" => $this->l('Listing Approval Required'), "name" => "product", "values" => array("query" => array(array("id" => "approval", "val" => 1, "name" => $this->l('Do you want approve seller products before they are listed?'))), "id" => "id", "name" => "name")), array("type" => "htmlhr", "name" => "approval_section", "values" => array()), array("type" => "checkbox", "label" => $this->l('Allow customer to be a seller'), "name" => "customer", "values" => array("query" => array(array("id" => "seller", "val" => 1, "name" => $this->l('Allow customers to sign up for a sellers account and list products.'))), "id" => "id", "name" => "name")), array("type" => "checkbox", "label" => $this->l('Account Approval Required'), "name" => "seller", "values" => array("query" => array(array("id" => "approval", "val" => 1, "name" => $this->l('Sellers registering from the front office are required to be approved/activated by Admin.'))), "id" => "id", "name" => "name")), array("type" => "htmlhr", "name" => "customer_seller_section", "values" => array()), array("type" => "checkbox", "label" => $this->l('Seller back office access'), "name" => "seller", "values" => array("query" => array(array("id" => "back_office", "val" => 1, "name" => $this->l('If you want to allow seller to access back office'))), "id" => "id", "name" => "name")), array("type" => "htmlhr", "name" => "seller_backoffice_section", "values" => array()), array("type" => "checkbox", "label" => $this->l('Seller Products At Store Home'), "name" => "allow_register", "values" => array("query" => array(array("id" => "athome", "val" => 1, "name" => $this->l('If you want to allow seller to register product at store Home category'))), "id" => "id", "name" => "name")), array("type" => "htmlhr", "name" => "register_athome_section", "values" => array()), array("type" => "checkbox", "label" => $this->l('Edit product category'), "name" => "edit", "values" => array("query" => array(array("id" => "category", "val" => 1, "name" => $this->l('Allow the seller the following permissions for product categories:  add/edit/enable/disable.'))), "id" => "id", "name" => "name")), array("type" => "htmlhr", "name" => "edit_category_section", "values" => array()), array("type" => "checkbox", "label" => $this->l('Seller Info Tab'), "name" => "seller", "values" => array("query" => array(array("id" => "tab", "val" => 1, "name" => $this->l('Checking this box adds a new tab on the Product Detail page in the Front Office (store), for seller added products. This new tab displays the seller\'s information (i.e. address and phone number), as well as the seller\'s location in a Google Maps window if they so choose.'))), "id" => "id", "name" => "name")), array("type" => "radio", "label" => $this->l('Seller Info Theme Style'), "name" => "seller_info_theme", "form_group_class" => "seller_info_theme " + (${${"GLOBALS"}["omwbsquklu"]} ? "" : "hidden"), "values" => array(array("id" => "vertical", "value" => 1, "label" => $this->l('Vertical'), "p" => "This is the tab style of default theme pf PrestaShop 1.6"), array("id" => "horizonal", "value" => 2, "label" => $this->l('Horizontal'), "p" => "This is the tab style of default theme of PrestaShop 1.5"))), array("type" => "htmlhr", "name" => "seller_info_section", "values" => array()), array("type" => "checkboxgroup", "label" => $this->l('Custom Fields'), "name" => "customized_fields", "header" => $this->l('You can choose to use following custom fileds for additional informaiton of seller. Tips: You can use PrestaShop translation funciton to change the display name of each field. '), "values" => array(array("section_name" => "customize_text", "items" => ${$wgqdrawwvsd}), array("section_name" => "customize_html", "items" => ${${"GLOBALS"}["ixehsvr"]}), array("section_name" => "customize_number", "items" => ${${"GLOBALS"}["zmhmzerls"]}), array("section_name" => "customize_date", "items" => ${${"GLOBALS"}["vxywymmyyyy"]}))), array("type" => "htmlhr", "name" => "customized_field_section", "values" => array()), array("type" => "hidden", "name" => "profile_id"), array("type" => "text", "label" => $this->l('Linked Profile'), "readonly" => 1, "name" => "profilename", "desc" => $this->l('By installing this module, a new employee profile called "agilemultipleseller" was created and is now linked to this module. You can view this new profile by going to the "Administration" -> "Employees" tab.'))), "submit" => array("title" => $this->l('Save'))));
         ${${"GLOBALS"}["pborwzm"]} = new HelperForm();
         $helper->show_toolbar = false;
         $helper->table = $this->name;
         ${${"GLOBALS"}["ubqssnk"]} = new Language((int) Configuration::get("PS_LANG_DEFAULT"));
         $helper->default_form_language = $lang->id;
         $helper->module = $this;
         $helper->allow_employee_form_lang = Configuration::get("PS_BO_ALLOW_EMPLOYEE_FORM_LANG") ? Configuration::get("PS_BO_ALLOW_EMPLOYEE_FORM_LANG") : 0;
         $helper->identifier = $this->identifier;
         $helper->submit_action = "submitSetting";
         $helper->currentIndex = $this->context->link->getAdminLink("AdminModules", false) . "&configure=" . $this->name . "&tab_module=" . $this->tab . "&module_name=" . $this->name;
         $helper->token = Tools::getAdminTokenLite("AdminModules");
         $helper->tpl_vars = array("fields_value" => array_merge($this->getConfigFieldsValues(${${"GLOBALS"}["rmdjxwl"]}, ${${"GLOBALS"}["umntfbicqtr"]}), ${$kptflxfro}, ${${"GLOBALS"}["brfuori"]}, ${${"GLOBALS"}["xmwyqrjrzn"]}, ${${"GLOBALS"}["ftilrxsmpbw"]}), "languages" => $this->context->controller->getLanguages(), "id_language" => $this->context->language->id);
         $this->_html .= $helper->generateForm(array(${${"GLOBALS"}["hxfvuydgc"]}));
         $this->_html .= " \n\t\t\t<fieldset id=\"instructions\">\n\t\t\t<legend><img src=\"" . $this->_path . "logo.gif\" alt=\"\" title=\"\" />" . $this->l('Maintenance Notes') . "</legend>\n\t\t    <div class=\"alert alert-info\">" . $this->l('1. You can view and/or modify the permissions for the "agilemultipleseller" profile by going to the "Administration" -> "Permissions" tab and selecting "agilemultipleseller" from the list.') . "&nbsp;<a href=\"./index.php?tab=AdminAccess&profile=" . $profile->id . "&token=" . ${${"GLOBALS"}["nkjjmcl"]} . "\" style=\"color:Blue;text-decoration:underline;\">" . $this->l('Or, just click here.') . "</a><br />\n\t    \t        <font color=\"red\">" . $this->l('2.  Please DO NOT DELETE this profile') . "<br /></font>\n\t\t\t\t</div>\n\t\t\t</fieldset>\n\t\t\t";
         $this->context->controller->addJS(array(_PS_ROOT_DIR_ . "/modules/agilemultipleseller/js/agile_admin.js"));
     }
 }