ajax)) { ?>
checkoutHelper->displayMessages('cart'); ?> options['show_cart_image'])) { $row_count++; ?> extraFields['product'])) { foreach($this->extraFields['product'] as $fieldname => $field) { $row_count++; echo ''; } } if(!empty($this->options['show_price'])) { $row_count++; ?> options['show_price'])) { $row_count++; ?> config->get('group_options', 0); $thumbnail_x = $this->config->get('thumbnail_x', 100); $thumbnail_y = $this->config->get('thumbnail_y', 100); $cart = $this->checkoutHelper->getCart(); if(empty($this->productClass)) $this->productClass = hikashop_get('class.product'); if(!empty($this->options['show_cart_image']) && empty($this->imageHelper)) $this->imageHelper = hikashop_get('helper.image'); if(empty($this->currencyClass)) { $this->currencyClass = hikashop_get('class.currency'); $this->currencyHelper =& $this->currencyClass; } global $Itemid; $checkout_itemid = (int)$this->config->get('checkout_itemid'); if(!empty($checkout_itemid)) $Itemid = $checkout_itemid; $url_itemid=''; if(!empty($Itemid)) $url_itemid = '&Itemid=' . $Itemid; foreach($cart->products as $i => $product) { if(empty($product->cart_product_quantity)) continue; if($group && !empty($product->cart_product_option_parent_id)) continue; $this->productClass->addAlias($product); ?> options['show_cart_image'])) { ?> extraFields['product'])) { foreach($this->extraFields['product'] as $field) { $namekey = $field->field_namekey; ?> options['show_price'])) { ?> options['show_price'])) { ?> full_total->prices[0]->price_value_with_tax - $cart->full_total->prices[0]->price_value, $this->currencyClass->getRounding($cart->full_total->prices[0]->price_currency_id)); if(!empty($this->options['show_price']) && (!empty($cart->coupon) || !empty($cart->shipping) || !empty($cart->additional) || $taxes > 0)) { ?> options['show_price']) && !empty($cart->coupon)) { ?> options['show_price']) && !empty($cart->shipping)) { ?> additional)) { $exclude_additionnal = explode(',', $this->config->get('order_additional_hide', '')); foreach($cart->additional as $k => $additional) { if(in_array($additional->name, $exclude_additionnal)) continue; if(empty($this->options['show_price']) && !empty($additional->price_value)) continue; ?> options['show_price']) && !empty($cart->payment) && $cart->payment->payment_price != 0) { ?> options['show_price'])) { ?> if(!empty($this->options['show_price']) && $taxes > 0){ if($this->config->get('detailed_tax_display') && isset($cart->full_total->prices[0]->taxes)) { foreach($cart->full_total->prices[0]->taxes as $tax) { ?>
'.$this->fieldClass->trans($field->field_realname).'
images)) { $image = reset($product->images); $this->imageHelper->checkSize($thumbnail_x, $thumbnail_y, $image); } if($image && !$this->config->get('thumbnail')) { echo '' . $image->file_name . ''; } else { ?>
imageHelper->getThumbnail( @$image->file_path, array( 'width' => $thumbnail_x, 'height' => $thumbnail_y ), array( 'default' => true, 'forcesize' => $this->config->get('image_force_size', true), 'scale' => $this->config->get('image_scale_mode', 'inside') ) ); if($img->success) { $attributes = ''; if($img->external) $attributes = ' width="'.$img->req_width.'" height="'.$img->req_height.'"'; echo ''.$this->escape(@$image->file_name).''; } ?>

options['link_to_product_page'])) { ?>product_name; if(!empty($this->options['show_product_code'])) { ?>product_code; ?>options['link_to_product_page'])) { ?>options['show_price'])){ $display_item_price = false; foreach($cart->products as $j => $optionElement) { if(empty($optionElement->cart_product_option_parent_id) || (int)$optionElement->cart_product_option_parent_id != (int)$product->cart_product_id) continue; if(!empty($optionElement->prices[0])) { $display_item_price = true; break; } } if($display_item_price) echo ' ' . strip_tags($this->getDisplayProductPrice($product, true)) . ''; } ?> product_parent_id)) $edit = true; if(hikashop_level(2) && !empty($this->extraFields['item'])) { $item = $cart->cart_products[$i]; foreach($this->extraFields['item'] as $field) { $namekey = $field->field_namekey; if(empty($item->$namekey) || !strlen($item->$namekey)) continue; $edit = true; $html .= '

'.$this->fieldClass->getFieldName($field).': '.$this->fieldClass->show($field, $item->$namekey).'

'; } } if($group) { if(!isset($product->prices[0])) { $product->prices[0] = new stdClass(); $product->prices[0]->price_value = 0; $product->prices[0]->price_value_with_tax = 0.0; $product->prices[0]->price_currency_id = hikashop_getCurrency(); } foreach($cart->products as $j => $optionElement) { if(empty($optionElement->cart_product_option_parent_id) || $optionElement->cart_product_option_parent_id != $product->cart_product_id) continue; if(!empty($optionElement->prices[0])) $this->addOptionPriceToProduct($product->prices[0],$optionElement->prices[0]); $html .= '

' . $optionElement->product_name; if(!empty($this->options['show_price']) && @$optionElement->prices[0]->price_value_with_tax > 0) $html .= ' ( + ' . strip_tags($this->getDisplayProductPrice($optionElement, true)) . ' )'; if($optionElement->cart_product_quantity != $product->cart_product_quantity) { $html .= ' x'.round($optionElement->cart_product_quantity / $product->cart_product_quantity, 2); } $html .= '

'; $edit = true; } } if(empty($this->options['status']) && $edit) { $popupHelper = hikashop_get('helper.popup'); echo ' '.$popupHelper->display( '', 'HIKASHOP_EDIT_CART_PRODUCT', hikashop_completeLink('cart&task=product_edit&cart_id='.$cart->cart_id.'&cart_product_id='.$product->cart_product_id.'&tmpl=component&'.hikashop_getFormToken().'=1'), 'edit_cart_product', 576, 480, 'title="'.JText::_('EDIT_THE_OPTIONS_OF_THE_PRODUCT').'"', '', 'link' ); } ?>

'.$html.''; if(!empty($product->extraData) && !empty($product->extraData->checkout)) echo '

' . implode('

', $product->extraData->checkout) . '

'; ?>
$namekey)) { echo '

' . $this->fieldClass->show($field, $product->$namekey) . '

'; } ?>
getDisplayProductPrice($product, true); if(HIKASHOP_RESPONSIVE) { ?> options['status'])) { if($product->product_parent_id != 0 && isset($product->main_product_quantity_layout)) $product->product_quantity_layout = $product->main_product_quantity_layout; if($product->product_quantity_layout == 'show_select' || (empty($product->product_quantity_layout) && $this->config->get('product_quantity_display', 'show_default_div') == 'show_select')) { $min_quantity = ($product->product_min_per_order || empty($product->parent_product)) ? $product->product_min_per_order : $product->parent_product->product_min_per_order; $max_quantity = ($product->product_max_per_order || empty($product->parent_product)) ? $product->product_max_per_order : $product->parent_product->product_max_per_order; $min_quantity = max((int)$min_quantity, 1); $max_quantity = max((int)$max_quantity, 0); if($max_quantity == 0) $max_quantity = (int)$min_quantity * $this->config->get('quantity_select_max_default_value', 15); $values = array( 0 => JHTML::_('select.option', 0, 0) ); for($j = $min_quantity; $j <= $max_quantity; $j += $min_quantity) { $values[$j] = JHTML::_('select.option', $j, $j); } if(!isset($values[$product->cart_product_quantity])) $values[$product->cart_product_quantity] = JHTML::_('select.option', $product->cart_product_quantity, $product->cart_product_quantity); $onchange = 'onchange="window.hikashop.checkQuantity(this); var qty_field = document.getElementById(\'hikashop_checkout_quantity_'.$product->cart_product_id.'\'); if (qty_field && qty_field.value != \''.$product->cart_product_quantity.'\'){'.$input.'return window.checkout.submitCart('.$this->step.','.$this->module_position.'); } return false;"'; $ret = JHTML::_('select.genericlist', $values, 'checkout[cart][item]['.$product->cart_product_id.']', 'id="hikashop_checkout_quantity_'.$product->cart_product_id.'" data-hk-qty-old="'. $product->cart_product_quantity.'" '.$onchange, 'value', 'text', $product->cart_product_quantity); echo str_replace('id="checkoutcartitem'.$product->cart_product_id.'"', '', $ret); } else { ?> options['show_delete'])) { $url = hikashop_currentURL(); $delete_url = hikashop_completeLink('product&task=updatecart&product_id='.$product->product_id.'&quantity=0'); $delete_url .= ((strpos($delete_url, '?') === false) ? '?' : '&') . 'return_url='.urlencode(base64_encode(urldecode($url))); ?> cart_product_quantity; } ?> getDisplayProductPrice($product, false); ?>
options['price_with_tax'])) echo $this->currencyClass->format(@$cart->total->prices[0]->price_value_with_tax,@$cart->total->prices[0]->price_currency_id); else echo $this->currencyClass->format(@$cart->total->prices[0]->price_value,@$cart->total->prices[0]->price_currency_id); ?>
options['price_with_tax'])) echo $this->currencyClass->format(@$cart->coupon->discount_value_without_tax * -1, @$cart->coupon->discount_currency_id); else echo $this->currencyClass->format(@$cart->coupon->discount_value * -1, @$cart->coupon->discount_currency_id); ?>
value)) { echo $this->value; } else { $shipping_price = null; foreach($cart->shipping as $shipping) { if(!isset($shipping->shipping_price) && isset($shipping->shipping_price_with_tax) ) { $shipping->shipping_price = $shipping->shipping_price_with_tax; } if(isset($shipping->shipping_price)) { if($shipping_price === null) $shipping_price = 0.0; if(empty($this->options['price_with_tax']) || !isset($shipping->shipping_price_with_tax)) $shipping_price += $shipping->shipping_price; else $shipping_price += $shipping->shipping_price_with_tax; } } if($shipping_price !== null) echo $this->currencyClass->format($shipping_price, $cart->full_total->prices[0]->price_currency_id); } ?>
name); ?> price_value) || empty($additional->value)) { if($taxes == 0 || empty($this->options['price_with_tax'])) echo $this->currencyClass->format(@$additional->price_value,$additional->price_currency_id); else echo $this->currencyClass->format(@$additional->price_value_with_tax,$additional->price_currency_id); } else echo $additional->value; ?>
payment->payment_price) && isset($cart->payment->payment_price_with_tax) ) { if(isset($this->value)) { echo $this->value; } else { $cart->payment->payment_price = 0.0; $cart->payment->payment_price_with_tax = 0.0; } } if(isset($cart->payment->payment_price)) { if($taxes == 0 || empty($this->options['price_with_tax']) || !isset($cart->payment->payment_price_with_tax) ) echo $this->currencyClass->format(@$cart->payment->payment_price, $cart->full_total->prices[0]->price_currency_id); else echo $this->currencyClass->format(@$cart->payment->payment_price_with_tax, $cart->full_total->prices[0]->price_currency_id); } ?>
currencyClass->format($cart->full_total->prices[0]->price_value_with_tax, $cart->full_total->prices[0]->price_currency_id); ?>
tax_namekey); ?> currencyClass->format($tax->tax_amount, $cart->full_total->prices[0]->price_currency_id); ?>
currencyClass->format($taxes, $cart->full_total->prices[0]->price_currency_id); ?>
extraData[$this->module_position]) && !empty($this->extraData[$this->module_position]->bottom)) { echo implode("\r\n", $this->extraData[$this->module_position]->bottom); } if(false) { ?> ajax)) { ?>