Which file do I need to edit to swap the position of the postal/zip code with the county field?
As in the UK, the postcode comes after the country name.
Thanks!
Which file do I need to edit to swap the position of the postal/zip code with the county field?
As in the UK, the postcode comes after the country name.
Thanks!
Which version of Zen Cart are you using?
What contributions/addons/mods/customizations have you done/added to your site?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
oops - I am using 1.3.2
The only mods I have are the UK billing module to accept UK debit cards.
In v1.3.5 a new layout format was added to the address_format table which supports the UK-preferred address structure.
.. and then the countries which use this 6th format were updated as well (Admin->Locations->Countries)Code:INSERT INTO address_format VALUES (6, '$firstname $lastname$cr$streets$cr$city$cr$state$cr$postcode$cr$country','$postcode / $country');
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I have changed and tested the 5 dropdown options in Countries format but none of them change the invoice to the following:
Customers Name
Address Line 1
Address Line 2
Town City
County
Postcode
Country
I am sure it is something I am doing wrong but could you maybe point me in the right direction please?
Many thanks.
H
PS My site is 1.3.6
I managed to work around the problem by inserting into SQL the following:
INSERT INTO address_format VALUES (7, '$firstname $lastname$cr$streets$cr$city$cr$postcode$cr$country','$postcode / $country');
Input this into Admin / Tools / Install SQL Patches.
Then, under Admin / Localisation / Countries, select United Kingdom, and set the address format to 7.
I removed the "state" field from what Dr. Byte put, and it comes out exactly the way I want it. I have disabled a lot of the inputs on the "log in" page, so I don't know if the way it comes out on your site will be different, but what I get is this:
Name, Surname
Street Address
Line 2
City
Postcode
Country
Hope this helps! I noticed it won't change invoices for orders already placed, but it does change the format for future orders.