예제 #1
0
 public function renderCategoryTree($root = null, $selected_cat = array(), $input_name = 'categoryBox', $use_radio = false, $use_search = false, $disabled_categories = array(), $use_in_popup = false, $use_shop_context = false)
 {
     global $cookie;
     $html = parent::renderCategoryTree($root, $selected_cat, $input_name, $use_radio, $use_search, $disabled_categories, $use_in_popup, $use_shop_context);
     if (Module::isInstalled('agilemultipleseller') and !(int) Configuration::get('AGILE_MS_ALLOW_REGISTER_ATHOME')) {
         if ((int) $cookie->id_employee == 0 or (int) $cookie->profile == (int) Configuration::get('AGILE_MS_PROFILE_ID')) {
             require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php";
             $html .= AgileMultipleSeller::jsForHideHome();
         }
     }
     return $html;
 }
 public function render($data = NULL)
 {
     $html = parent::render($data);
     if (Module::isInstalled('agilemultipleseller') and !(int) Configuration::get('AGILE_MS_ALLOW_REGISTER_ATHOME')) {
         $context = Context::getContext();
         if ((int) $context->cookie->id_employee == 0 or (int) $context->cookie->profile == (int) Configuration::get('AGILE_MS_PROFILE_ID')) {
             require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php";
             $html .= AgileMultipleSeller::jsForHideHome();
         }
     }
     return $html;
 }