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
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:
Add After:
If using OC 2302, edit admin/controller/sale/order.php
Around line: 1784
Find:
Code: Select all
'telephone' => $order_info['telephone'],
Code: Select all
'fax' => $order_info['fax'],
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
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
Who is online
Users browsing this forum: Amazon [Bot], darkhorse, Semrush [Bot] and 187 guests