get($cart->cart_id);
// $fp = fopen('cart.txt', 'w');
// $write['c']=$data->cart_id;
// fwrite($fp, print_r($write, TRUE));
// fclose($fp);
// $cartClass = hikashop::get('class.cart');
// $oldCart = $cartClass->get(0);
//var_dump($oldCart);
?>
module && isset($this->element->category_canonical) && !empty($this->element->category_canonical)) {
$canonicalUrl = hikashop_cleanURL($this->element->category_canonical);
if(!empty($this->pageInfo->limit->start)) {
if(strpos($canonicalUrl, '?')) {
$canonicalUrl .= '&';
} else {
$canonicalUrl .= '?';
}
$canonicalUrl .= 'limitstart='.(int)$this->pageInfo->limit->start;
}
$doc = JFactory::getDocument();
$doc->addHeadLink($canonicalUrl, 'canonical');
}
if(!empty($this->tmpl_ajax)) {
$this->setLayout('listing');
$layout_type = $this->params->get('layout_type');
echo $this->loadTemplate($layout_type);
return;
}
if(hikashop_level(2) && hikaInput::get()->getVar('hikashop_front_end_main', 0) && hikaInput::get()->getVar('task') == 'listing' && $this->params->get('show_compare')) { ?>
module) {
$title_key = 'showtitle';
$titleType = 'h2';
}
$title = (string)$this->params->get($title_key, '');
if((!$this->module || hikaInput::get()->getVar('hikashop_front_end_main', 0)) && $title_key == 'show_page_heading' && $title === '') {
$params = JComponentHelper::getParams('com_menus');
$title = $params->get('show_page_heading');
}
if(!empty($title) && hikaInput::get()->getVar('hikashop_front_end_main', 0) && (!$this->module || $this->pageInfo->elements->total)) {
$name = $this->params->get('page_title');
if($this->module) {
$name = $this->params->get('title');
} elseif($this->params->get('page_heading')) {
$name = $this->params->get('page_heading');
}
?>
<>
>
getVar('hikashop_front_end_main',0);
hikaInput::get()->set('hikashop_front_end_main',0);
if(($this->params->get('show_image') && !empty($this->element->file_path)) || ($this->params->get('show_description', !$this->module) && !empty($this->element->category_description))) {
?>
params->get('show_image') && !empty($this->element->file_path)){
jimport('joomla.filesystem.file');
if(JFile::exists($this->image->getPath($this->element->file_path,false))){
?>
; ?>)
params->get('show_description',!$this->module)&&!empty($this->element->category_description)){
?>
element->category_description);
?>
fields)) {
ob_start();
$this->fieldsClass->prefix = '';
foreach($this->fields as $fieldName => $oneExtraField) {
if(!empty($this->element->$fieldName)) {
?>
set('hikashop_front_end_main',$val);
$mainInfo = ob_get_clean();
ob_start();
$display_filters = (int)$this->params->get('display_filters', -1);
if($display_filters == -1) {
$config =& hikashop_config();
$display_filters = (int)$config->get('show_filters');
}
if(hikashop_level(2) && hikaInput::get()->getVar('hikashop_front_end_main', 0) && (hikaInput::get()->getVar('task','listing')=='listing' || !empty($this->force_display_filter)) && $display_filters == 1) {
$this->setLayout('filter');
$htmlFilter = $this->loadTemplate();
}
$task = hikaInput::get()->getCmd('task', '');
$ctrl = hikaInput::get()->getCmd('ctrl', '');
if(!empty($htmlFilter) && $ctrl != 'category') {
echo $htmlFilter;
$htmlFilter = '';
}
$filter_type = (int)$this->params->get('filter_type');
$layout_type = $this->params->get('layout_type');
if(empty($layout_type))
$layout_type = 'div';
$classes = 'hikashop_category_information hikashop_products_listing_main hikashop_product_listing_'.@$this->element->category_id;
$attributes = '';
if(!$this->module || hikaInput::get()->getVar('hikashop_front_end_main',0)) {
$classes .= ' filter_refresh_div';
$url = hikashop_currentURL();
if(!strpos($url, '&tmpl=raw&filter=1')) {
if(strpos($url, '?'))
$url .= '&tmpl=raw&filter=1';
else
$url .= '?tmpl=raw&filter=1';
}
$attributes = 'data-refresh-class="hikashop_checkout_loading" data-refresh-url="' . $url . '" data-use-url="1"';
}
if($filter_type !== 3) {
$this->setLayout('listing');
$html = $this->loadTemplate($layout_type);
if(!$this->module)
echo $mainInfo;
if(!empty($html)){
if($this->module) echo $mainInfo;
if(!empty($htmlFilter) && $ctrl == 'category')
echo $htmlFilter;
?>
getVar('hikashop_front_end_main',0) && hikaInput::get()->getVar('task') == 'listing' && $this->params->get('show_compare')) {
$css_button = $this->config->get('css_button', 'hikabtn');
$css_button_compare = $this->config->get('css_button_compare', 'hikabtn-compare');
?>
module || hikaInput::get()->getVar('hikashop_front_end_main',0) ) && ($ctrl == 'product' || $ctrl == 'category') && $task == 'listing' && !empty($this->filters) && is_array($this->filters) && count($this->filters) && !empty($this->filter_set)) {
if(!empty($htmlFilter))
echo $htmlFilter;
echo ' ' . JText::_('HIKASHOP_NO_RESULT') . '
';
}
} else if(!empty($this->rows) && !empty($this->categories)) {
if(!$this->module)
echo $mainInfo;
$allrows = $this->rows;
$pagination = '';
if((!$this->module || hikaInput::get()->getVar('hikashop_front_end_main',0)) && $this->pageInfo->elements->total) {
$pagination = $this->config->get('pagination','bottom');
$this->config->set('pagination', '');
}
if((!empty($allrows) || !$this->module || hikaInput::get()->getVar('hikashop_front_end_main',0)) && in_array($pagination, array('top','both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total) {
$this->pagination->form = '_top';
?>
params->get('main_div_name');
foreach($this->categories as $category) {
if(empty($category['products']))
continue;
$this->rows = array();
foreach($allrows as $p) {
if(in_array($p->product_id, $category['products']))
$this->rows[] = $p;
}
$this->params->set('main_div_name', $main_div_name.'_'.$category['category']->category_id);
$this->setLayout('listing');
$html = $this->loadTemplate($layout_type);
if(!empty($html)) {
if(!empty($htmlFilter) && $ctrl == 'category')
echo $htmlFilter;
?>
category_name; ?>
getVar('hikashop_front_end_main',0) && hikaInput::get()->getVar('task') == 'listing' && $this->params->get('show_compare')) {
$css_button = $this->config->get('css_button', 'hikabtn');
$css_button_compare = $this->config->get('css_button_compare', 'hikabtn-compare');
?>
params->set('main_div_name', $main_div_name);
$this->config->set('pagination', $pagination);
if((!empty($allrows) || !$this->module || hikaInput::get()->getVar('hikashop_front_end_main',0)) && in_array($pagination,array('bottom','both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total) {
$this->pagination->form = '_bottom';
?>
getVar('hikashop_front_end_main',0)) {
?>
>
getVar('hikashop_front_end_main',0)) {
?>
module){
?>
modules)){
jimport('joomla.application.module.helper');
foreach($this->modules as $module) {
echo JModuleHelper::renderModule($module);
}
}
?>