Page 1 of 1
Admin Invoice Adjustment & integrated labels.
Posted: Wed Jan 09, 2013 8:10 am
by kylelnsn
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.
Re: Admin Invoice Adjustment & integrated labels.
Posted: Wed Jan 09, 2013 8:44 pm
by ChetanCx
open admin/view/template/sale/order_invoice.tpl in a text editor. its sort of a HTML file with dynamic content. edit anyway you want it. elements like "<b>" all work there.
Re: Admin Invoice Adjustment & integrated labels.
Posted: Wed Jan 09, 2013 10:58 pm
by kylelnsn
I can see that, I just can seem to find how to adjust output for the shipping address to be displayed in the right format if that makes sense.
I need postcode on its own line and after the county but before the country.
Anyone!?
Re: Admin Invoice Adjustment & integrated labels.
Posted: Thu Jan 10, 2013 2:53 am
by ChetanCx
open
admin/controller/sale/order.php
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}';
}
replace with :
Code: Select all
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city}' . "\n" . '{postcode}' . "\n" . '{zone}' . "\n" . '{country}';
find this:
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}';
}
replace with:
Code: Select all
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city}' . "\n" . '{postcode}' . "\n" . '{zone}' . "\n" . '{country}';
this should work.
