Post by Melanie » Mon Dec 26, 2011 1:10 pm

Ok, so heres my question...

How can I re-arrange the address format (that you see on the invoice and the order form)

Right now opencart is set up to put it in this order:
First Name:
Last Name:
Address 1:
Address 2:
City:
Postcode:
Region / State:
Region / State Code:
Country:

I want it to show as:
First Name:
Last Name:
Address 1:
Address 2:
City:
Region / State:
Region / State Code:
Postcode:
Country:


Can anyone advise?
Has anyone carried out this mod in 1.5+


Thanks a lot!
Mel

New member

Posts

Joined
Tue Mar 30, 2010 9:39 am

Post by fido-x » Mon Dec 26, 2011 3:27 pm

In "catalog/model/checkout/order.php", lines 262 and 296 read:

Code: Select all

$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}'; 
To put them the way you want them, change to:

Code: Select all

$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city}' . "\n" . '{zone} {postcode}' . "\n" . '{country}'; 

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Melanie » Wed Dec 28, 2011 9:05 am

Excellent, thank you very much!
Merry Christmas.

New member

Posts

Joined
Tue Mar 30, 2010 9:39 am
Who is online

Users browsing this forum: No registered users and 55 guests