rows)) return; $pagination = $this->config->get('pagination','bottom'); if(in_array($pagination,array('top','both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total > $this->pageInfo->limit->value) { $this->pagination->form = '_top'; ?>
pagination->getListFooter($this->params->get('limit')); ?> pagination->getResultsCounter(); ?>
getString('option') == HIKASHOP_COMPONENT && in_array(hikaInput::get()->getString('ctrl','category'), array('category', 'product'))); $cid = 0; $last_category_selected = 0; $before_nb_products = JText::_('BEFORE_NUMBER_OF_PRODUCTS'); if($before_nb_products == 'BEFORE_NUMBER_OF_PRODUCTS') $before_nb_products = ' ('; $after_nb_products = JText::_('AFTER_NUMBER_OF_PRODUCTS'); if($after_nb_products == 'AFTER_NUMBER_OF_PRODUCTS') $after_nb_products = ')'; if($in_hikashop_context) { if(hikaInput::get()->getString('ctrl','category') == 'product' && hikaInput::get()->getString('task','listing') == 'show') { $last_category_selected = (int)$app->getUserState(HIKASHOP_COMPONENT.'.last_category_selected', 0); $config =& hikashop_config(); $pathway_sef_name = $config->get('pathway_sef_name', 'category_pathway'); $cid = hikaInput::get()->getInt($pathway_sef_name, 0); } else { $cid = hikaInput::get()->getInt('cid', 0); } } $only_if_products = $this->params->get('only_if_products', 0); switch($this->params->get('child_display_type')){ case 'nochild': default: ?> params->get('ul_display_simplelist', 0)) { /** Primer nivel */ ?>
rows as $k => $row) { if($only_if_products && $row->number_of_products < 1) continue; if($this->params->get('number_of_products', 0)) { $row->category_name .= ' (' . $row->number_of_products . ')'; } if(!$this->module || $this->params->get('links_on_main_categories')){ $link = $this->getLink($row); $row->category_name = '' . $row->category_name . ''; } ?>

category_name; ?>

    childs)) { $app = JFactory::getApplication(); $found = ''; if($in_hikashop_context) { foreach($row->childs as $child) { if($cid == $child->category_id) { $found = (int)$child->category_id; $app->setUserState(HIKASHOP_COMPONENT.'.last_category_selected', (int)$child->category_id); break; } } } $limit = $this->params->get('child_limit'); $i = 0; foreach($row->childs as $child) { if($only_if_products && $child->number_of_products < 1) continue; if(!empty($limit) && $i >= $limit) break; $i++; $link = $this->getLink($child); $class = ($found == $child->category_id) ? ' current active' : ''; ?>
  • category_name; if($this->params->get('number_of_products', 0)) { echo $before_nb_products . $child->number_of_products . $after_nb_products; } ?>
getString('ctrl', 'category') == 'product' && hikaInput::get()->getString('task', 'listing') == 'show') { $database = JFactory::getDBO(); $query = 'SELECT category_id FROM '.hikashop_table('product_category').' WHERE product_id = ' . (int)hikashop_getCID('product_id') . ' ORDER BY product_category_id ASC'; $database->setQuery($query); $cid = $database->loadColumn(); if(empty($cid)) { $class = hikashop_get('class.product'); $product = $class->get(hikashop_getCID('product_id')); if($product && $product->product_type == 'variant' && $product->product_parent_id) { $query = 'SELECT category_id FROM '.hikashop_table('product_category').' WHERE product_id = ' . (int)$product->product_parent_id . ' ORDER BY product_category_id ASC'; $database->setQuery($query); $cid = $database->loadColumn(); } } } if(empty($cid)){ if(!HIKASHOP_J30){ $menuClass = hikashop_get('class.menus'); $menuData = $menuClass->get($this->params->get('itemid',0)); if(@$menuData->hikashop_params['content_type']=='product' && isset($menuData->hikashop_params['selectparentlisting'])) $cid = $menuData->hikashop_params['selectparentlisting']; }else{ $app = JFactory::getApplication(); $menuItem = $app->getMenu()->getActive(); if(is_object($menuItem)){ $category_params = $menuItem->getParams(); $hkParams = $category_params->get('hk_product',false); if(isset($hkParams->category)) $cid = $hkParams->category; } } } if(!is_array($cid)) $cid = array($cid); $i = 0; foreach($this->rows as $k => $row) { if($only_if_products && $row->number_of_products < 1) continue; if(in_array((int)$row->category_id,$cid)) { $found = $i; break; } if(!empty($row->childs)) { foreach($row->childs as $child) { if(in_array($child->category_id,$cid)) { $found = $i; $sub_selected = $row->category_id; break 2; } } } $i++; } $app = JFactory::getApplication(); if($found >= 0) { $app->setUserState(HIKASHOP_COMPONENT.'.last_category_selected', $found); } elseif(hikaInput::get()->getString('ctrl', 'category') != 'category' || hikaInput::get()->getString('task','listing') != 'listing') { $found = (int)$last_category_selected; } } else { $cid = array(0); } if($this->params->get('ul_display_simplelist', 0)) { ?> tabs = hikashop_get('helper.sliders'); $this->tabs->setOptions(array( 'startOffset' => $found, 'startTransition' => 0, 'displayFirst' => 0 )); echo $this->tabs->startPane('category_panel_'.$this->params->get('id')); foreach($this->rows as $k => $row) { if($only_if_products && $row->number_of_products < 1) continue; if($this->params->get('number_of_products', 0)) { $row->category_name .= ' (' . $row->number_of_products . ')'; } if( !$this->module || $this->params->get('links_on_main_categories') || empty($row->childs)) { $link = $this->getLink($row); $row->category_name = ''.$row->category_name.''; } $toOpen = false; if(in_array($row->category_id,$cid)) $toOpen = true; if(!empty($row->childs)) { foreach($row->childs as $child) { if(in_array($child->category_id,$cid)) $toOpen = true; } } echo $this->tabs->startPanel($row->category_name, 'category_pane_'.$k, !empty($row->childs), $toOpen); if(!empty($row->childs)) { ?> tabs->endPanel(); } echo $this->tabs->endPane(); } break; } ?> params->get('show_limit') && $this->pageInfo->elements->total > $this->pageInfo->limit->value) { $this->pagination->form = '_bottom'; ?>
pagination->getListFooter($this->params->get('limit')); ?> pagination->getResultsCounter(); ?>