Post by lasa » Tue May 14, 2013 6:54 pm

Thanks storm-cloud,
I'll definetly study the code because I want to learn how to make subtle changes to xml when needed.
Thanks again!

Frank

Active Member

Posts

Joined
Tue Apr 16, 2013 9:11 am

Post by lasa » Thu May 16, 2013 4:38 am

Storm-cloud, I must have done something wrong before because "the-check-address-impoved-v1.2" is now working...
During check-out it perfect... but when I get the final invoice or I see it on line it reads like this:
Lasa art
87010 sw 116 ave
quebec west j3j 6b6 <--not at the end
Québec
Canada

instead of:

Lasa art
87010 sw 116 ave
quebec west
Québec
Canada j3j 6b6

Any ideas?

Lasa

Active Member

Posts

Joined
Tue Apr 16, 2013 9:11 am

Post by chulann » Thu May 16, 2013 9:51 am

@lasa
In fact neither of your examples is correct according to Canadian Post Office.
The standards dictate the post code comes after province and before the country.
See: http://www.canadapost.ca/cpo/mc/persona ... essing.jsf

New member

Posts

Joined
Sun Aug 28, 2011 11:30 pm

Post by lasa » Fri May 17, 2013 3:06 am

Strom-cloud, I did as you indicated and looked at the code and how you built it... very easy to move the post code as per Chulann message. So now at throughout check-out it reads correctly.
Now my issue seems to be the Invoice / order ... the invoice order confirmation and order history all the post code after the city, instead of after the region / state code?

First Name:
Last Name:
Address 1:
City:
Postcode:
Region / State:
Region / State Code:
Country:

I looked at what I thought would be the invoice and order php but the order they have them in seems correct...
Any ideas?

This link shows exactly what I get on the invoice confirmation:
Image

The post code is in the wrong place...
Lasa

Active Member

Posts

Joined
Tue Apr 16, 2013 9:11 am

Post by lasa » Fri May 17, 2013 5:09 am

I've rearranged register.tpl, address-form.tpl any file that wasn't nailed down and it did not change how the invoice or conformation received.

If you change the address-form.tpl you can see it rearrange at the address level but it doesn't change the invoice or confirmation.

Lasa

Active Member

Posts

Joined
Tue Apr 16, 2013 9:11 am

Post by lasa » Fri May 17, 2013 8:27 am

OK...I've got it! The invoice and order confirmation address layout can be controled from withing Opencart!
admin - System - Localisation - Countries
In my case Canada is default > edit... in address format you have some default sample structure code on the left.
For proper address set up Copy and paste the code below code into the TEXT BOX

{firstname} {lastname}
{company}
{address_1}
{address_2}
{city}, {zone_code} {postcode}
{country}

This along with storm-cloud's xml covering the cart... we're golden!

Lasa

Active Member

Posts

Joined
Tue Apr 16, 2013 9:11 am
Who is online

Users browsing this forum: No registered users and 8 guests