ajax)) { ?>
checkoutHelper->displayMessages('cart'); ?> options['show_cart_image'])) { $row_count++; ?> extraFields['product'])) { foreach($this->extraFields['product'] as $fieldname => $field) { $row_count++; echo ''; } } ?> 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(); $displayingPrices = new stdClass(); $displayingPrices->price_currency_id = $cart->full_total->prices[0]->price_currency_id; $displayingPrices->total = new stdClass(); $displayingPrices->total->price_value = $cart->full_total->prices[0]->price_value; $displayingPrices->total->price_value_with_tax = $cart->full_total->prices[0]->price_value_with_tax; $displayingPrices->taxes = array(); if(isset($cart->full_total->prices[0]->taxes)) $displayingPrices->taxes = $cart->full_total->prices[0]->taxes; if(empty($this->options['show_payment'])){ if(isset($cart->payment->payment_price) && $cart->payment->payment_price > 0 && $cart->payment->payment_price < $displayingPrices->total->price_value) $displayingPrices->total->price_value -= $cart->payment->payment_price; if(isset($cart->payment->payment_price_with_tax) && $cart->payment->payment_price_with_tax > 0 && $cart->payment->payment_price_with_tax < $displayingPrices->total->price_value_with_tax) $displayingPrices->total->price_value_with_tax -= $cart->payment->payment_price_with_tax; if(isset($cart->payment->taxes)){ foreach($cart->payment->taxes as $payment_tax){ if(array_key_exists($payment_tax->tax_namekey, $displayingPrices->taxes)){ $displayingPrices->taxes[$payment_tax->tax_namekey]->tax_amount -= $payment_tax->tax_amount; } } } } if(empty($this->options['show_shipping']) && !empty($cart->shipping)){ $shipping_price = 0; $shipping_price_with_tax = 0; foreach($cart->shipping as $shipping) { if(isset($shipping->shipping_price) && $shipping->shipping_price > 0 && $shipping->shipping_price < $displayingPrices->total->price_value) $shipping_price += $shipping->shipping_price; if(isset($shipping->shipping_price_with_tax) && $shipping->shipping_price_with_tax > 0 && $shipping->shipping_price_with_tax < $displayingPrices->total->price_value_with_tax) $shipping_price_with_tax += $shipping->shipping_price_with_tax; if(isset($shipping->taxes)){ foreach($shipping->taxes as $shipping_tax){ if(array_key_exists($shipping_tax->tax_namekey, $displayingPrices->taxes)){ $displayingPrices->taxes[$shipping_tax->tax_namekey]->tax_amount -= $shipping_tax->tax_amount; } } } if(!empty($this->options['show_coupon']) && isset($cart->coupon->taxes) && isset($cart->coupon->discount_shipping_percent) && $cart->coupon->discount_shipping_percent > 0){ foreach($cart->coupon->taxes as $coupon_tax){ if(array_key_exists($coupon_tax->tax_namekey, $displayingPrices->taxes)){ $displayingPrices->taxes[$coupon_tax->tax_namekey]->tax_amount -= $coupon_tax->tax_amount; } } } } $displayingPrices->total->price_value -= $shipping_price; $displayingPrices->total->price_value_with_tax -= $shipping_price_with_tax; } if(empty($this->options['show_coupon'])){ if(isset($cart->coupon->discount_value_without_tax) && $cart->coupon->discount_value_without_tax > 0 && $cart->coupon->discount_value_without_tax < $displayingPrices->total->price_value) $displayingPrices->total->price_value += $cart->coupon->discount_value_without_tax; if(isset($cart->coupon->discount_value) && $cart->coupon->discount_value > 0 && $cart->coupon->discount_value < $displayingPrices->total->price_value_with_tax) $displayingPrices->total->price_value_with_tax += $cart->coupon->discount_value; } 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'])) { ?> total->price_value_with_tax - $displayingPrices->total->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) && !empty($this->options['show_coupon'])) { ?> options['show_price']) && !empty($cart->shipping) && !empty($this->options['show_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']) && $taxes > 0){ if($this->config->get('detailed_tax_display') && isset($displayingPrices->taxes)) { foreach($displayingPrices->taxes as $tax) { ?> options['show_price']) && !empty($cart->payment) && $cart->payment->payment_price != 0 && !empty($this->options['show_payment'])) { ?> options['show_price'])) { ?>
'.$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)) . ''; } ?> has_options) && $group; if(!empty($product->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(); $product->prices[0]->unit_price = new stdClass(); $product->prices[0]->unit_price->price_value = 0; $product->prices[0]->unit_price->price_value_with_tax = 0.0; $product->prices[0]->unit_price->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 .= '

'; } } 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'])) { $this->row =& $product; $cartHelper = hikashop_get('helper.cart'); $this->quantityLayout = $cartHelper->getProductQuantityLayout($this->row); $onchange = 'window.hikashop.checkQuantity(this); if (this.value != \''.$product->cart_product_quantity.'\'){'.$input.'return window.checkout.submitCart('.$this->step.','.$this->module_position.'); } return false;'; $onincrement = 'window.hikashop.updateQuantity(this,\'{id}\'); if (document.getElementById(\'{id}\').value != \''.$product->cart_product_quantity.'\'){'.$input.'return window.checkout.submitCart('.$this->step.','.$this->module_position.'); } return false;'; echo $this->loadHkLayout('quantity', array( 'id_prefix' => 'hikashop_checkout_'.(int)$this->module_position.'_quantity_field', 'quantity_fieldname' => 'checkout[cart][item]['.$product->cart_product_id.']', 'onchange_script' => $onchange, 'onincrement_script' => $onincrement, )); if(!empty($this->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; ?>
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); ?>
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($displayingPrices->total->price_value_with_tax, $displayingPrices->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)) { ?>