Post by agnesyuen » Thu Jun 29, 2017 11:58 am

Hi Support

We get the following problem. Please help us to fix.

We going to add field on admin Invoice
admin - view - template - sale - order_invoice

<td style="width: 50%;"><address>
<?php echo $order['shipping_address']; ?>
Email: <?php echo $order['email']; ?><br>
Phone: <?php echo $order['telephone']; ?><br>
Other Contact: <?php echo $order['fax']; ?><br/>

But the admin invoice (FAX) line show message as below

Notice: Undefined index: fax in /home/tim/public_html/v2/admin/view/template/sale/order_invoice.tpl

Thanks

Newbie

Posts

Joined
Thu Jun 29, 2017 11:39 am

Post by uksitebuilder » Thu Jun 29, 2017 6:20 pm

This means that the variable 'fax' has not been defined in the associated controller file

If using OC 2302, edit admin/controller/sale/order.php

Around line: 1784

Find:

Code: Select all

					'telephone'        => $order_info['telephone'],
Add After:

Code: Select all

					'fax'        => $order_info['fax'],

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by lucasgarcia » Thu Nov 02, 2017 3:29 pm

Hello,
i have same problem, change sale/order_invoice:

<td><address>
<?php echo $order['payment_address']; ?> <br/
line 59 CIF: <?php echo $order['fax']; ?><br/>
</address>
</td>
<td><address>
<?php echo $order['shipping_address']; ?> <br/>
line 64 CIF: <?php echo $order['fax']; ?><br/>
</address></td>

code in template/sale/order.php:

'store_telephone' => $store_telephone,
'store_fax' => $store_fax,
'email' => $order_info['email'],
'telephone' => $order_info['telephone'],
'shipping_address' => $shipping_address,
'fax' => $order_info['fax'],
'shipping_method' => $order_info['shipping_method'],
'payment_address' => $payment_address,
'fax' => $order_info['fax'],
'payment_method' => $order_info['payment_method'],


wrong:
CIF: Notice: Undefined index: fax in /home/pccartuc/public_html/admin/view/template/sale/order_invoice.tpl on line 59
CIF: Notice: Undefined index: fax in /home/pccartuc/public_html/admin/view/template/sale/order_invoice.tpl on line 64

thanks

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm

Post by lucasgarcia » Mon Nov 06, 2017 2:58 pm

Did someone have the same problem?

New member

Posts

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

Users browsing this forum: Amazon [Bot], darkhorse, Semrush [Bot] and 187 guests