invoice_type=='full'){
echo JText::_('INVOICE');
}else{
echo JText::_('SHIPPING_INVOICE');
}
?>
element->order_created,'%d.%m.%Y ');?>
element->order_invoice_number;?>
Contacto: Marion
|
shipping)){
echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$this->shipping->getName($this->order->order_shipping_method,$this->order->order_shipping_id).' ';
}?>
payment)){
echo JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$this->payment->getName($this->order->order_payment_method,$this->order->order_payment_id);
}?>
invoice_type=='full' && !empty($this->element->billing_address)){?>
Cliente:
setLayout('address_template');
$html = $this->loadTemplate();
foreach($this->element->fields as $field){
$fieldname = $field->field_namekey;
$html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->billing_address->$fieldname),$html);
}
echo str_replace("\n"," \n",trim(str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)),"\n"));
?>
|
element->order_shipping_id) && !empty($this->element->shipping_address)){
?>
element->override_shipping_address)) {
$this->setLayout('address_template');
$html = $this->loadTemplate();
foreach($this->element->fields as $field){
$fieldname = $field->field_namekey;
$html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->shipping_address->$fieldname),$html);
}
echo str_replace("\n"," \n",trim(str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)),"\n"));
} else {
echo $this->element->override_shipping_address;
}
?>
|
|
|
|
invoice_type=='full'){?>
|
|
|
|
invoice_type=='full'){?>
|
config->get('group_options',0);
$products_array = $taxes_array = array(); $tax_total = 0; //added by roberto
foreach($this->order->products as $product){
if($group && $product->order_product_option_parent_id) continue;
//tax calculation start - added by roberto
$tax = " ";
if (is_array($product->order_product_tax_info)) {
$tax_rate = $product->order_product_tax_info[0]->tax_rate * 100;
$tax_amount = $product->order_product_tax_info[0]->tax_amount * $product->order_product_quantity;
$product_amount = $product->order_product_price * $product->order_product_quantity;
$tax_total += $tax_amount;
if ($tax_rate>0) {
if ($tax_rate == (int)$tax_rate) $tax = sprintf("%d",$tax_rate);
else $tax = sprintf("%0.2f",$tax_rate);
$taxes_array[$tax] = @$taxes_array[$tax] + $tax_amount;
$products_array[$tax] = @$products_array[$tax] + $product_amount + $tax_amount;
$tax.=" %";
}
} // tax calculation end
?>
order_product_name ;?>
order->products as $j => $optionElement){
if($optionElement->order_product_option_parent_id != $product->order_product_id) continue;
if($optionElement->order_product_price>0){
$display_item_price = true;
}
}
if($display_item_price){
if($this->config->get('price_with_tax')){
echo ' '.$this->currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id);
}else{
echo ' '.$this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);
}
}
}
if(hikashop_level(2) && !empty($this->fields['item'])){
foreach($this->fields['item'] as $field){
$namekey = $field->field_namekey;
if(empty($product->$namekey)){
continue;
}
echo ' '.$this->fieldsClass->getFieldName($field).': '.$this->fieldsClass->show($field,$product->$namekey).' ';
}
}
if($group){
foreach($this->order->products as $j => $optionElement){
if($optionElement->order_product_option_parent_id != $product->order_product_id) continue;
$product->order_product_price +=$optionElement->order_product_price;
$product->order_product_tax +=$optionElement->order_product_tax;
$product->order_product_total_price+=$optionElement->order_product_total_price;
$product->order_product_total_price_no_vat+=$optionElement->order_product_total_price_no_vat;
?>
order_product_name;
if($optionElement->order_product_price>0){
if($this->config->get('price_with_tax')){
echo ' ( + '.$this->currencyHelper->format($optionElement->order_product_price+$optionElement->order_product_tax,$this->order->order_currency_id).' )';
}else{
echo ' ( + '.$this->currencyHelper->format($optionElement->order_product_price,$this->order->order_currency_id).' )';
}
}
?>
|
order_product_code; ?> |
invoice_type=='full'){?>
currencyHelper->format($product->order_product_price,$this->order->order_currency_id); ?>
|
|
currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id); ?>
|
order_product_quantity;?>
|
invoice_type=='full'){?>
currencyHelper->format($product->order_product_total_price,$this->order->order_currency_id); ?>
|
invoice_type=='full'){?>
|
|
|
currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id); ?>
|
order->order_subtotal-$this->order->order_subtotal_no_vat+$this->order->order_shipping_tax-$this->order->order_discount_tax;
if(1==2 && $taxes != 0){
if($this->config->get('detailed_tax_display') && !empty($this->order->order_tax_info)){
foreach($this->order->order_tax_info as $tax){ ?>
|
|
currencyHelper->format($tax->tax_amount,$this->order->order_currency_id); ?>
|
|
|
currencyHelper->format($taxes,$this->order->order_currency_id); ?>
|
order->order_discount_price != 0){ ?>
|
|
config->get('price_with_tax')){
echo $this->currencyHelper->format($this->order->order_discount_price*-1.0,$this->order->order_currency_id);
}else{
echo $this->currencyHelper->format(($this->order->order_discount_price-@$data->order_discount_tax)*-1.0,$this->order->order_currency_id);
} ?>
|
order->additional)) {
$exclude_additionnal = explode(',', $this->config->get('order_additional_hide', ''));
foreach($this->order->additional as $additional) {
if(in_array($additional->order_product_name, $exclude_additionnal)) continue;
?>
|
|
order_product_price)) {
$additional->order_product_price = (float)$additional->order_product_price;
}
if(!empty($additional->order_product_price) || empty($additional->order_product_options)) {
echo $this->currencyHelper->format($additional->order_product_price, $this->order->order_currency_id);
} else {
echo $additional->order_product_options;
}
?> |
order->order_shipping_price!=0){ ?>
|
|
config->get('price_with_tax')){
echo $this->currencyHelper->format($this->order->order_shipping_price,$this->order->order_currency_id);
}else{
echo $this->currencyHelper->format($this->order->order_shipping_price-@$data->order_shipping_tax,$this->order->order_currency_id);
?>
|
order->order_payment_price!=0){ ?>
|
|
currencyHelper->format($this->order->order_payment_price,$this->order->order_currency_id); ?>
|
|
|
|
|
currencyHelper->format($this->order->order_full_price-$taxes,$this->order->order_currency_id); ?>
|
|
$tax_amount) { ?>
|
|
currencyHelper->format($tax_amount,$this->order->order_currency_id); ?>
|
|
|
|
$tax_amount) { ?>
|
|
currencyHelper->format($tax_amount,$this->order->order_currency_id); ?>
|
|
|
|
|
currencyHelper->format($this->order->order_full_price,$this->order->order_currency_id); ?>
|
|
invoice_type=='full'){
$fieldsClass = hikashop_get('class.field');
$fields = $fieldsClass->getFields('backend',$this->order,'order');
if(!empty($fields)){ ?>
$oneExtraField) {
?>
fieldsClass->getFieldName($oneExtraField);?>
|
fieldsClass->show($oneExtraField,@$this->order->$fieldName); ?>
|
|
trigger('onAfterOrderProductsListingDisplay', array(&$this->order, 'order_back_invoice'));
?>
|
Puedes hacer una reclamación hasta 15 días después de la recepción de la mercancía.
|
Mon Petit Pot agradece su compra y espera que el pedido sea de su agrado.
|
store_address;?>
|