Exemple #1
-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;
 }