getWord('tmpl', ''); $module_id = (int)$this->params->get('id', 0); if(!in_array($tmpl, array('component', 'ajax', 'raw'))) { $events = ($this->cart_type == 'cart') ? '["cart.updated","checkout.cart.updated"]' : '"wishlist.updated"'; ?> config->get('group_options', 0); $small_cart = (int)$this->params->get('small_cart', 0); $link_to_product = (int)$this->params->get('link_to_product_page', 1); $spinner_css=""; if (!empty($small_cart)) $spinner_css="small_spinner small_cart"; if(empty($this->rows)) { $hidecart = (int)$this->params->get('hide_cart', 0); $desc = trim($this->params->get('msg')); if((empty($desc) && $desc != '0') || $hidecart == 0) $desc = ($this->cart_type == 'cart') ? JText::_('CART_EMPTY') : JText::_('WISHLIST_EMPTY'); if($hidecart == 2) $desc = ''; if(empty($desc) && $desc != '0' && $tmpl == 'component') { if(!headers_sent()) header('Content-Type: text/css; charset=utf-8'); exit; } if(!empty($desc)) echo $this->notice_html; if(!in_array($tmpl, array('component', 'ajax', 'raw'))) { ?>
config->get('css_button', 'hikabtn'); $css_button_checkout = $this->config->get('css_button_checkout', 'hikashop_cart_proceed_to_checkout'); if($this->params->get('print_cart', 0)) { $print_button = $this->popup->display( '', 'HIKA_PRINT', hikashop_completeLink('cart&task=printcart&cid='.$this->element->cart_id, true), 'hikashop_print_popup', 760, 480, 'title="'.JText::_('HIKA_PRINT').'"', '', 'link' ); } $this->setLayout('listing_price'); $this->params->set('show_quantity_field', 0); if(!in_array($tmpl, array('component', 'ajax', 'raw'))) { ?>
notice_html; if(!empty($this->element->messages)) { foreach($this->element->messages as $msg) { if(empty($msg['type'])) $msg['type'] = 'success'; hikashop_display($msg['msg'], $msg['type']); } } $text = ''; if(!empty($small_cart)) { $price_name = ''; if(!$this->params->get('show_shipping', 0) && isset($this->total->prices[0]->price_value_without_shipping)){ $price_name = '_without_shipping'; } if(!$this->params->get('show_coupon', 0) && isset($this->total->prices[0]->price_value_without_discount)){ $price_name = '_without_discount'; } $price = ''; if($this->params->get('price_with_tax')){ $var_name = 'price_value'.$price_name.'_with_tax'; $price .= $this->currencyClass->format(@$this->total->prices[0]->$var_name, $this->total->prices[0]->price_currency_id); } if($this->params->get('price_with_tax')==2){ $price .= JText::_('PRICE_BEFORE_TAX'); } if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){ $var_name = 'price_value'.$price_name; $price .= $this->currencyClass->format(@$this->total->prices[0]->price_value, $this->total->prices[0]->price_currency_id); } if($this->params->get('price_with_tax')==2){ $price .= JText::_('PRICE_AFTER_TAX'); } if((int)$this->params->get('show_cart_quantity', 1)) { $qty = 0; foreach($this->element->cart_products as $i => $row) { if(empty($row->cart_product_quantity) && $this->element->cart_type == 'cart') continue; if($group && $row->cart_product_option_parent_id) continue; $qty += $row->cart_product_quantity; } if($this->params->get('show_price')){ if($qty == 1 && JText::_('X_ITEM_FOR_X') != 'X_ITEM_FOR_X') { $text = JText::sprintf('X_ITEM_FOR_X', $qty, $price); } else { $text = JText::sprintf('X_ITEMS_FOR_X', $qty, $price); } }else{ if($qty == 1) $text = JText::sprintf('X_ITEM', $qty); else $text = JText::sprintf('X_ITEMS', $qty); } } else { if($this->params->get('show_price')) $text = JText::sprintf('TOTAL_IN_CART_X', $price); else $text = JText::_('MINI_CART_PROCEED_TO_CHECKOUT'); } unset($this->row); $extra_data = ''; if($this->element->cart_type == 'cart') { $link = $this->url_checkout; } else { $link = hikashop_completeLink('cart&task=showcart&cart_id='.$this->element->cart_id.'&cart_type='.$this->element->cart_type . $this->cart_itemid); } if($small_cart == 2) { $extra_data .= ' onclick="if(window.hikashop.toggleOverlayBlock(\'hikashop_cart_dropdown_'.$module_id.'\')) return false;"'; }elseif($small_cart == 3) { $extra_data .= ' ontouchend="window.hikashop.toggleOverlayBlock(\'hikashop_cart_dropdown_'.$module_id.'\', \'hover\'); return false;" onmouseover="window.hikashop.toggleOverlayBlock(\'hikashop_cart_dropdown_'.$module_id.'\', \'hover\'); return false;"'; } ?> > element->cart_type == 'cart' && $small_cart == 1 && $this->params->get('print_cart', 0)) { ?> element->cart_type == 'cart' && $small_cart == 1 && $this->params->get('show_cart_delete', 1)) { $delete = hikashop_completeLink('product&task=cleancart'); ?> element->cart_type == 'cart' && $small_cart == 1 && $this->params->get('show_cart_proceed', 1)) { ?>
params->get('dropdown_left', 0); if($v != 0) $alignment .= 'left:'.(-$v).'px;'; $v = (int)$this->params->get('dropdown_right', 0); if($v != 0) $alignment .= 'right:'.(-$v).'px;'; ?>