Post by kylelnsn » Wed Jan 09, 2013 8:10 am

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.

New member

Posts

Joined
Mon Apr 09, 2012 9:52 pm

Post by ChetanCx » Wed Jan 09, 2013 8:44 pm

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.

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by kylelnsn » Wed Jan 09, 2013 10:58 pm

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!?

New member

Posts

Joined
Mon Apr 09, 2012 9:52 pm

Post by ChetanCx » Thu Jan 10, 2013 2:53 am

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. :)

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm
Who is online

Users browsing this forum: No registered users and 90 guests