Hi All,
I want to adjust the admin invoice.
Basically opencart now output the shipping and payment address as
Name
First Line
Second Line
Third Line
County POSTCODE
Country
I would like the formatting as;
Name
First Line
Second Line
Third Line
County
POSTCODE
Country
How can I do this?
Is it also possible to make the text larger? Bold etc?
Also is it possible to adjust the position of the shipping address to a relative postion on the sheet? As we are looking at moving to an integrated label.
open admin/controller/sale/order.php
find thisreplace with :
find this:replace with:
this should work. 
find this
Code: Select all
if ($order_info['shipping_address_format']) {
$format = $order_info['shipping_address_format'];
} else {
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}';
}
Code: Select all
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city}' . "\n" . '{postcode}' . "\n" . '{zone}' . "\n" . '{country}';
Code: Select all
if ($order_info['payment_address_format']) {
$format = $order_info['payment_address_format'];
} else {
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}';
}
Code: Select all
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city}' . "\n" . '{postcode}' . "\n" . '{zone}' . "\n" . '{country}';

Who is online
Users browsing this forum: Semrush [Bot] and 27 guests