Post by lucasgarcia » Mon Oct 16, 2017 7:09 pm

Hola quiero añadir en la factura el fax pero me da el siguiente error:

Fax:Notice: Undefined variable: order_fax in /home/pccartuc/public_html/admin/view/template/sale/order_invoice.tpl on line 60

En order_invocice.tpl he añadido el siguiente código, en la tabla oc_order si existe la columna fax ¿porque no me lo reconoce?

<td><address>
<?php echo $order['payment_address']; ?>

<br><?php echo $text_fax; ?><?php echo $order_fax['fax']; ?> </br>
</address>
</td>
<td><address>
<?php echo $order['shipping_address']; ?>
</address></td>
Last edited by lucasgarcia on Sat Oct 21, 2017 1:03 am, edited 1 time in total.

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm

Post by lucasgarcia » Tue Oct 17, 2017 1:52 am

He cambiado en sytem/countries/lolcalisation/spain:
Address format:
{firstname}
{lastname}
{company}
{address_1}
{city}
{postcode}
{zone}
{fax}
y no funciona por que no muestra el fax sale en blanco
¿alguien sabe porqué?

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm

Post by lucasgarcia » Fri Oct 20, 2017 7:08 pm

in admin/controller/sale/order.php
add down postcode in address shipping and addres payment a new field fax but dont show

something idea, more files change to show invoice fax
thanks

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm

Post by lucasgarcia » Mon Oct 23, 2017 4:53 pm

Any help please

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm

Post by yodapt » Wed Oct 25, 2017 4:10 am

admin/controller/sale/order.php

You'll find something like this :

Code: Select all

$find = array(
	'{firstname}',
	'{lastname}',
	'{company}',
	'{address_1}',
	'{address_2}',
	'{city}',
	'{postcode}',
	'{zone}',
	'{zone_code}',
	'{country}'
);

$replace = array(
	'firstname' => $order_info['payment_firstname'],
	'lastname'  => $order_info['payment_lastname'],
	'company'   => $order_info['payment_company'],
	'address_1' => $order_info['payment_address_1'],
	'address_2' => $order_info['payment_address_2'],
	'city'      => $order_info['payment_city'],
	'postcode'  => $order_info['payment_postcode'],
	'zone'      => $order_info['payment_zone'],
	'zone_code' => $order_info['payment_zone_code'],
	'country'   => $order_info['payment_country']
);
Replace with

Code: Select all

$find = array(
	'{firstname}',
	'{lastname}',
	'{company}',
	'{address_1}',
	'{address_2}',
	'{city}',
	'{postcode}',
	'{zone}',
	'{zone_code}',
	'{fax}',
	'{country}'
);

$replace = array(
	'firstname' => $order_info['payment_firstname'],
	'lastname'  => $order_info['payment_lastname'],
	'company'   => $order_info['payment_company'],
	'address_1' => $order_info['payment_address_1'],
	'address_2' => $order_info['payment_address_2'],
	'city'      => $order_info['payment_city'],
	'postcode'  => $order_info['payment_postcode'],
	'zone'      => $order_info['payment_zone'],
	'zone_code' => $order_info['payment_zone_code'],
	'fax'       => $order_info['payment_fax'],
	'country'   => $order_info['payment_country']
);
You will find next to it the shipping address info, you should do the same and add fax to it.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by lucasgarcia » Thu Oct 26, 2017 4:00 am

Sorry i add this code but dont show fax :choke:

i think this problem is for payment address and shipping address in order_details but i dont know to change, add field fax in my account addressbook

thanks for your help

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm
Who is online

Users browsing this forum: No registered users and 32 guests