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 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; }
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; }
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; }