Пример #1
0
 public function processData()
 {
     $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', ">=");
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php";
     $module = new AgileMultipleShop();
     self::$smarty->assign(array('products' => (isset($seller_products) and $seller_products) ? $seller_products : NULL, 'id_location' => $this->id_location, 'agilesellerproducts_tpl' => _PS_ROOT_DIR_ . '/modules/' . (_PS_VERSION_ > '1.5' ? 'agilemultipleshop' : 'agilesellerproducts') . '/', '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'), 'path' => $module->getL('Shop By Location')));
     $ver = (int) str_replace(".", "", _PS_VERSION_);
     if (isset(self::$cookie->id_compare)) {
         self::$smarty->assign('compareProducts', CompareProduct::getCompareProducts((int) self::$cookie->id_compare));
     }
     self::$smarty->assign(array('seller_locations4page' => agilemultipleshop::getLocationListNV($this->location_level), 'location_level4page' => $this->location_level));
     self::$smarty->assign(array('allow_oosp' => (int) Configuration::get('PS_ORDER_OUT_OF_STOCK'), 'comparator_max_item' => (int) Configuration::get('PS_COMPARATOR_MAX_ITEM')));
 }
 public function processData()
 {
     $ctauohff = "nbProducts";
     $lqphkm = "nbProducts";
     $ysyvzjxyh = "nbProducts";
     ${"GLOBALS"}["dsdvggak"] = "seller_products";
     ${$ctauohff} = $this->getProducts(NULL, NULL, NULL, $this->orderBy, $this->orderWay, true);
     ${"GLOBALS"}["wfbehuenkky"] = "si_1531_later";
     $this->pagination((int) ${$lqphkm});
     self::$smarty->assign("nb_products", (int) ${$ysyvzjxyh});
     ${${"GLOBALS"}["hjmsmx"]} = $this->getProducts((int) self::$cookie->id_lang, (int) $this->p, (int) $this->n, $this->orderBy, $this->orderWay);
     ${"GLOBALS"}["eppbsdtlhhp"] = "si_1531_later";
     AgileHelper::AssignProductImgs(${${"GLOBALS"}["dsdvggak"]});
     ${${"GLOBALS"}["fvpbxlqzzc"]} = version_compare(_PS_VERSION_, "1.5.3.1", ">=");
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php";
     ${${"GLOBALS"}["mdcknsjm"]} = new AgileMultipleShop();
     self::$smarty->assign(array("products" => (isset(${${"GLOBALS"}["hjmsmx"]}) and ${${"GLOBALS"}["hjmsmx"]}) ? ${${"GLOBALS"}["hjmsmx"]} : NULL, "id_location" => $this->id_location, "agilesellerproducts_tpl" => _PS_ROOT_DIR_ . "/modules/" . (_PS_VERSION_ > "1.5" ? "agilemultipleshop" : "agilesellerproducts") . "/", "add_prod_display" => Configuration::get("PS_ATTRIBUTE_CATEGORY_DISPLAY"), "categorySize" => Image::getSize(${${"GLOBALS"}["wfbehuenkky"]} ? ImageType::getFormatedName("category") : "category"), "mediumSize" => Image::getSize(${${"GLOBALS"}["fvpbxlqzzc"]} ? ImageType::getFormatedName("medium") : "medium"), "thumbSceneSize" => Image::getSize(${${"GLOBALS"}["eppbsdtlhhp"]} ? ImageType::getFormatedName("thumb_scene") : "thumb_scene"), "homeSize" => Image::getSize(${${"GLOBALS"}["fvpbxlqzzc"]} ? ImageType::getFormatedName("home") : "home"), "path" => $module->getL("Shop By Location")));
     ${${"GLOBALS"}["abbgzzweqn"]} = (int) str_replace(".", "", _PS_VERSION_);
     if (isset(self::$cookie->id_compare)) {
         self::$smarty->assign("compareProducts", CompareProduct::getCompareProducts((int) self::$cookie->id_compare));
     }
     self::$smarty->assign(array("seller_locations4page" => agilemultipleshop::getLocationListNV($this->location_level), "location_level4page" => $this->location_level));
     self::$smarty->assign(array("allow_oosp" => (int) Configuration::get("PS_ORDER_OUT_OF_STOCK"), "comparator_max_item" => (int) Configuration::get("PS_COMPARATOR_MAX_ITEM")));
 }