loadAMenuItemId('','',$Itemid); if($current_id){ $url_itemid='&Itemid='.$Itemid; } } //if the current itemid is not a HikaShop mneu item load one if(empty($url_itemid)){ $menuClass = hikashop_get('class.menus'); $random_id = $menuClass->loadAMenuItemId('',''); if($random_id){ $url_itemid='&Itemid='.$random_id; } } //try to load the itemid of the checkout from the config in order to directly display the correct link to the checkout $itemid_for_checkout = (int)$this->config->get('checkout_itemid','0'); if(empty($itemid_for_checkout)){ $menuClass = hikashop_get('class.menus'); $itemid_for_checkout = $menuClass->getCheckoutMenuIdForURL(); } if(!empty($itemid_for_checkout)){ $url_checkout = hikashop_completeLink('checkout&Itemid='.$itemid_for_checkout); }else{ $url_checkout = hikashop_completeLink('checkout'.$url_itemid); } $this->setLayout('listing_price'); $this->params->set('show_quantity_field', 0); $desc = $this->params->get('msg'); $cart_type = $this->params->get('cart_type','cart'); $cart_itemid = $url_itemid; if($cart_type == 'wishlist'){ $convertText = JText::_('WISHLIST_TO_CART'); $displayText = JText::_('DISPLAY_THE_WISHLIST'); $displayAllText = JText::_('DISPLAY_THE_WISHLISTS'); $emptyText = JText::_('WISHLIST_EMPTY'); // Set a custom item id for the wishlist page $menusClass = hikashop_get('class.menus'); $set = $menusClass->loadAMenuItemId('cart','showcart',$this->params->get('cart_itemid', 0)); if(!$set) $set = $menusClass->loadAMenuItemId('cart','showcart'); if(!$set) $set = $menusClass->loadAMenuItemId('',''); if($set) $cart_itemid='&Itemid='.$set; }else{ $convertText = JText::_('CART_TO_WISHLIST'); $displayText = JText::_('DISPLAY_THE_CART'); $displayAllText = JText::_('DISPLAY_THE_CARTS'); $emptyText = JText::_('CART_EMPTY'); } if(empty($desc) && $desc != '0'){ $this->params->set('msg',$emptyText); } if(!headers_sent()){ header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); } $cart_type=$this->params->get('cart_type','cart'); if($this->params->get('from','no') == 'no'){ $this->params->set('from',JRequest::getString('from','display')); } if(empty($this->rows)){ $desc = trim($this->params->get('msg')); if(!empty($desc) || $desc == '0'){ echo $this->notice_html; ?>
config->get('print_cart',0) && JRequest::getVar('tmpl','')!='component' && $cart_type != 'wishlist'){ ?> params->get('from','display') != 'module'){ echo '