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>
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é?
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é?
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
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
admin/controller/sale/order.php
You'll find something like this :
Replace with
You will find next to it the shipping address info, you should do the same and add fax to it.
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']
);
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']
);
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Sorry i add this code but dont show fax
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
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
Who is online
Users browsing this forum: No registered users and 124 guests