order_id; echo JText::sprintf('ORDER_STATUS_CHANGED',$data->mail_status)."

".JText::sprintf('NOTIFICATION_OF_ORDER_ON_WEBSITE',$data->order_number,HIKASHOP_LIVE); $currency = hikashop_get('class.currency'); $url = ''.$url.''; echo "
".JText::sprintf('ACCESS_ORDER_WITH_LINK',$url); if($data->order_payment_method=='creditcard' && !empty($data->credit_card_info->cc_number)){ echo "
".JText::_('CUSTOMER_PAID_WITH_CREDIT_CARD'); if(!empty($data->credit_card_info->cc_owner)){ echo "
".JText::_('CREDIT_CARD_OWNER').' : '.$data->credit_card_info->cc_owner; } echo "
".JText::_('END_OF_CREDIT_CARD_NUMBER').' : '.substr($data->credit_card_info->cc_number,8); if(!empty($data->credit_card_info->cc_CCV)){ echo "
".JText::_('CARD_VALIDATION_CODE').' : '.$data->credit_card_info->cc_CCV; } echo "
".JText::_('CREDITCARD_WARNING'); } $fieldsClass = hikashop_get('class.field'); $fields = $fieldsClass->getFields('frontcomp',$data,'order',''); foreach($fields as $fieldName => $oneExtraField) { $fieldData = trim(@$data->$fieldName); if(empty($fieldData)) continue; echo "
".$fieldsClass->trans($oneExtraField->field_realname).' : '.$fieldsClass->show($oneExtraField,$data->$fieldName); } $class = hikashop_get('class.order'); $url = $data->order_number; $config =& hikashop_config(); if($config->get('simplified_registration',0)!=2){ $url .= ' ( '.$data->order_url.' )'; } $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; $colspan = 4; ?>
get('show_code')) { $colspan++; ?> getFields('frontcomp',$null,'item'); } $group = $config->get('group_options',0); foreach($data->cart->products as $item){ if($group && $item->order_product_option_parent_id) continue; ?> get('show_code')) { ?> get($item->product_id); echo $product->product_weight; ?> order_discount_price,0,5)){ echo ''; } if(bccomp($data->order_shipping_price,0,5)){ echo ''; } if(!empty($data->additional) || !empty($data->cart->additional)) { $exclude_additionnal = explode(',', $config->get('order_additional_hide', '')); if(empty($data->additional)) { $data->additional = $data->cart->additional; } foreach($data->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,'admin_email').'

'; } } 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).' )'; } } ?>

order_product_weight; ?>

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::_($additional->order_product_name).' : '; if(!empty($additional->order_product_price) || empty($additional->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.'
isAdmin() ? 'order' : 'address','address_template',$params,$js)); if(!empty($data->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->order_shipping_id) && (!empty($data->cart->shipping_address) || !empty($data->cart->override_shipping_address))){ echo ''; } else { $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 str_replace(array("\r\n","\r","\n"),'
',preg_replace('#{(?:(?!}).)*}#i','',$shipping)).'
'; } }?>
'.JText::_('HIKASHOP_BILLING_ADDRESS').'
'; echo str_replace(array("\r\n","\r","\n"),'
',preg_replace('#{(?:(?!}).)*}#i','',$billing)).'
'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'
'; if(!empty($data->cart->override_shipping_address)) { echo $data->cart->override_shipping_address.'