trigger('onAfterOrderProductsListingDisplay', array(&$data->cart, 'email_notification_html')); ?>
order_url; $mail_status = $data->mail_status; $customer = $data->customer; $order_status = $data->order_status; $class = hikashop_get('class.order'); $data = $class->get($data->order_id); $url = $data->order_number; $data->order_url = $order_url; $data->order_status = $order_status; $data->mail_status = $mail_status; $config =& hikashop_config(); if($config->get('simplified_registration',0)!=2){ $url = ''. $url.''; } echo JText::sprintf('HI_CUSTOMER',@$customer->name);?>

mail_status); $data->cart = $class->loadFullOrder($data->order_id,true,false); $data->cart->coupon = null; $price = null; $tax = $data->cart->order_subtotal - $data->cart->order_subtotal_no_vat + $data->order_discount_tax + $data->order_shipping_tax; $price->price_value = $data->order_full_price-$tax; $price->price_value_with_tax = $data->order_full_price; $data->cart->full_total = null; $data->cart->full_total->prices = array($price); $data->cart->coupon->discount_value =& $data->order_discount_price; $app=&JFactory::getApplication(); if($app->isAdmin()){ $view = 'order'; }else{ $view = 'address'; } $colspan = 4; ?>


get('show_code')) { $colspan++; ?> getFields('frontcomp',$null,'item'); } $group = $config->get('group_options',0); $database =& JFactory::getDBO(); $dbtable = hikashop_table('downloadids'); foreach($data->cart->products as $item){ if($group && $item->order_product_option_parent_id) continue; ?> get('show_code')) { ?> order_discount_price,0,5)){ echo ''; } if(bccomp($data->order_shipping_price,0,5)){ echo ''; } if(bccomp($data->order_payment_price,0,5)){ echo ''; } if(!empty($data->cart->additional)) { $exclude_additionnal = explode(',', $config->get('order_additional_hide', '')); foreach($data->cart->additional as $additional) { if(in_array($additional->name, $exclude_additionnal)) continue; echo ''; } } if($data->cart->full_total->prices[0]->price_value!=$data->cart->full_total->prices[0]->price_value_with_tax){ if($config->get('detailed_tax_display') && !empty($data->cart->order_tax_info)){ foreach($data->cart->order_tax_info as $tax){ echo ''; } }else{ echo ''; } $text=JText::sprintf('TOTAL_WITH_VAT',$currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->order_currency_id)); }else{ $text=JText::_('HIKASHOP_FINAL_TOTAL'). ' : '.$currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->order_currency_id); } echo ''; ?>

order_product_name; if($group){ $display_item_price=false; foreach($data->cart->products as $j => $optionElement){ if($optionElement->order_product_option_parent_id != $item->order_product_id) continue; if($optionElement->order_product_price>0){ $display_item_price = true; } } if($display_item_price){ if($config->get('price_with_tax')){ echo ' '.$currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->order_currency_id); }else{ echo ' '.$currencyHelper->format($item->order_product_price,$data->order_currency_id); } } } ?>

field_namekey; if(empty($item->$namekey)) continue; echo '

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

'; } } if($group){ foreach($data->cart->products as $j => $optionElement){ if($optionElement->order_product_option_parent_id != $item->order_product_id) continue; $item->order_product_price +=$optionElement->order_product_price; $item->order_product_tax +=$optionElement->order_product_tax; $item->order_product_total_price+=$optionElement->order_product_total_price; $item->order_product_total_price_no_vat+=$optionElement->order_product_total_price_no_vat; ?>

order_product_name; if($optionElement->order_product_price>0){ if($config->get('price_with_tax')){ echo ' ( + '.$currencyHelper->format($optionElement->order_product_price+$optionElement->order_product_tax,$data->order_currency_id).' )'; }else{ echo ' ( + '.$currencyHelper->format($optionElement->order_product_price,$data->order_currency_id).' )'; } } ?>

get('order_status_for_download','confirmed,shipped')); if(!empty($item->files) && in_array($data->order_status,$statusDownload)) { global $Itemid; usort($item->files, create_function('$a, $b', 'return $a->file_id == $b->file_id ? 0 : ($a->file_id < $b->file_id ? -1 : 1);')); $orderid = $data->order_id; $url_itemid = ''; if(!empty($Itemid)){ $url_itemid='&Itemid='.$Itemid; } echo '

'; foreach($item->files as $file){ $fileid = $file->file_id; $query="SELECT download_id FROM $dbtable WHERE file_id='$fileid' AND order_id='$orderid'"; $database->setQuery($query); $downloadid = $database->loadResult(); $fileName = empty($file->file_name) ? $file->file_path : $file->file_name; //$url = hikashop_frontendLink("index.php?option=com_hikashop&ctrl=download&downloadid=$downloadid"); $url = "index.php?option=com_hikashop&ctrl=download&downloadid=$downloadid"; $url = JRoute::_($url); echo ''.$fileName.'
'; } echo '

'; } ?>

order_product_code; ?>

get('price_with_tax')){ echo $currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->order_currency_id); }else{ echo $currencyHelper->format($item->order_product_price,$data->order_currency_id); } ?> order_product_quantity; ?> get('price_with_tax')){ echo $currencyHelper->format($item->order_product_total_price,$data->order_currency_id); }else{ echo $currencyHelper->format($item->order_product_total_price_no_vat,$data->order_currency_id); } ?>
'.JText::_('HIKASHOP_COUPON').' : '; if($config->get('price_with_tax')){ echo $currencyHelper->format($data->order_discount_price*-1,$data->order_currency_id); }else{ echo $currencyHelper->format(($data->order_discount_price-@$data->order_discount_tax)*-1,$data->order_currency_id); } echo '
'.JText::_('HIKASHOP_SHIPPING_METHOD').' : '; if($config->get('price_with_tax')){ echo $currencyHelper->format($data->order_shipping_price,$data->order_currency_id); }else{ echo $currencyHelper->format($data->order_shipping_price-@$data->order_shipping_tax,$data->order_currency_id); } echo '
'.JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$currencyHelper->format($data->order_payment_price,$data->order_currency_id).'
'. JText::_($additional->order_product_name).' : '; if(!empty($additional->order_product_price) || empty($additionaltionnal->order_product_options)) { if($config->get('price_with_tax')){ echo $currencyHelper->format($additional->order_product_price+@$additional->order_product_tax, $data->order_currency_id); }else{ echo $currencyHelper->format($additional->order_product_price, $data->order_currency_id); } } else { echo $additional->order_product_options; } echo '
'.$tax->tax_namekey. ' : '.$currencyHelper->format($tax->tax_amount,$data->order_currency_id).'
'.JText::sprintf('TOTAL_WITHOUT_VAT',$currencyHelper->format($data->cart->full_total->prices[0]->price_value,$data->order_currency_id)).'
'.$text.'
cart->billing_address)){ $billing = $template; foreach($data->cart->fields as $field){ $fieldname = $field->field_namekey; $billing=str_replace('{'.$fieldname.'}',$fieldsClass->show($field,$data->cart->billing_address->$fieldname),$billing); } echo ''; } if(!empty($data->cart->override_shipping_address)) { echo ''; } elseif(!empty($data->order_shipping_id) && !empty($data->cart->shipping_address)){ $shipping = $template; foreach($data->cart->fields as $field){ $fieldname = $field->field_namekey; $shipping=str_replace('{'.$fieldname.'}',$fieldsClass->show($field,$data->cart->shipping_address->$fieldname),$shipping); } echo ''; }?>
'.JText::_('HIKASHOP_BILLING_ADDRESS').'
'; echo str_replace(array("\r\n","\r","\n"),'
',preg_replace('#{(?:(?!}).)*}#i','',$billing)).'
'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'
'; echo $data->cart->override_shipping_address.'
'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'
'; echo str_replace(array("\r\n","\r","\n"),'
',preg_replace('#{(?:(?!}).)*}#i','',$shipping)).'
getFields('frontcomp',$data,'order',''); foreach($fields as $fieldName => $oneExtraField) { if(empty($data->$fieldName)) continue; echo "
".$fieldsClass->trans($oneExtraField->field_realname).' : '.$fieldsClass->show($oneExtraField,$data->$fieldName); } ?>


from_name);?>
customer = $customer;?>