config->get('checkout_itemid','0'); 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'); if ($cart_type == 'wishlist') { $convertText = JText::_('WISHLIST_TO_CART'); $displayText = JText::_('DISPLAY_THE_WISHLIST'); $displayAllText = JText::_('DISPLAY_THE_WISHLISTS'); $emptyText = JText::_('WISHLIST_EMPTY'); } 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; ?>
params->get('from', 'display') != 'module') { echo ''; } echo $this->notice_html; $row_count = 0; if (JRequest::getCmd('tmpl') == 'json' || JRequest::getCmd('hikashop_ajax') == 1 || $this->params->get('small_cart')) { $this->row = $this->total; if ($this->params->get('show_cart_quantity', 1)) { $qty = 0; $group = $this->config->get('group_options', 0); foreach ($this->rows as $i => $row) { if (empty($row->cart_product_quantity) && $cart_type != 'wishlist') continue; if ($group && $row->cart_product_option_parent_id) continue; $qty += $row->cart_product_quantity; } $text = JText::sprintf('X_ITEMS_FOR_X', $qty, $this->loadTemplate()); } else { $text = JText::sprintf('TOTAL_IN_CART_X', $this->loadTemplate()); } if ($cart_type != 'wishlist') : ?> rows as $row) { $cart_id = $row->cart_id; } ?>

cart_product_price = true; $group = $this->config->get('group_options', 0); $cart_id = 0; $app = JFactory::getApplication(); $productClass = hikashop_get('class.product'); $defaultParams = $this->config->get('default_params'); $this->image = hikashop_get('helper.image'); $height = $this->config->get('thumbnail_y'); $width = $this->config->get('thumbnail_x'); foreach ($this->rows as $i => $row) { $cart_id = $row->cart_id; if (empty($row->cart_product_quantity) || @$row->hide == 1) continue; if ($group && $row->cart_product_option_parent_id) continue; $productClass->addAlias($row); ?>
params->get('image_in_cart')) { ?>
true, 'forcesize' => true, 'scale' => 'inside' ); $img = $this->image->getThumbnail(@$row->images[0]->file_path, array( 'width' => 70, 'height' => 70 ), $image_options); if ($img->success) { echo '' . $this->escape(@$row->images[0]->file_name) . ''; } ?>
params->get('show_cart_product_name', 1)) { ?>

params->get('show_cart_quantity', 1)) : ?> cart_product_quantity . '×'; ?> product_name; ?> config->get('show_code')) { ?> product_code; ?>

itemFields)) { foreach ($this->itemFields as $field) { $namekey = $field->field_namekey; if (!empty($row->$namekey) && strlen($row->$namekey)) { echo '
' . $this->fieldsClass->getFieldName($field) . ': ' . $this->fieldsClass->show($field, $row->$namekey) . '
'; } } } $input = ''; if ($group) { foreach ($this->rows as $j => $optionElement) { if ($optionElement->cart_product_option_parent_id != $row->cart_product_id) continue; ?>
product_name; ?>
cart_product_id . '\').value=qty_field.value;'; echo ''; } } ?> params->get('show_price', 1)) : ?>
row =& $row; echo $this->loadTemplate(); ?>
rows as $j => $optionElement) { if ($optionElement->cart_product_option_parent_id != $row->cart_product_id) continue; if (!empty($optionElement->prices[0])) { if (!isset($row->prices[0])) { $row->prices[0]->price_value = 0; $row->prices[0]->price_value_with_tax = 0; $row->prices[0]->price_currency_id = hikashop_getCurrency(); } foreach (get_object_vars($row->prices[0]) as $key => $value) { if (is_object($value)) { foreach (get_object_vars($value) as $key2 => $var2) { if (strpos($key2, 'price_value') !== false) $row->prices[0]->$key->$key2 += @$optionElement->prices[0]->$key->$key2; } } else { if (strpos($key, 'price_value') !== false) $row->prices[0]->$key += @$optionElement->prices[0]->$key; } } } } } ?> params->get('from', 'display') != 'module') : ?>
ajax = ' if(qty_field == null){ var qty_field = document.getElementById(\'hikashop_wishlist_quantity_' . $row->cart_product_id . '\').value; } if(hikashopCheckChangeForm(\'item\',\'hikashop_wishlist_form\')){ return hikashopModifyQuantity(\'' . $this->row->product_id . '\',qty_field,1,\'hikashop_wishlist_form\',\'cart\'); } else { return false; } '; $this->setLayout('quantity'); echo $this->loadTemplate(); $this->setLayout('listing_price'); ?>
cart_product_price = false; ?>
params->get('show_price', 1) && $this->params->get('cart_type', 'cart') != 'wishlist') { ?>
row = $this->total; echo $this->loadTemplate(); ?>
row = $this->total; echo $this->loadTemplate(); ?>
params->get('cart_type', 'cart') != 'wishlist' && $this->params->get('from', 'display') == 'module') : if($this->params->get('show_cart_proceed',1)) { echo $this->cart->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,$url_checkout,''); } endif; ?>