Jump to content

Please help with address layout in Prestashop and State Placement


Recommended Posts

Please help.

Living in the UK, I have created "States" for all counties in the UK, e.g. "Devon,England", "Somerset, England"

However when the address is printed out it reads wrong:-

First Name,Last Name
Address 1
Address 2
Post Code
United Kingdom (Devon, England)

What I am trying to achieve is

First Name,Last Name
Address 1
Address 2
Devon, England
Post Code
United Kingdom

I have always used Zen Cart and this is never been an issue,so I was interested in the Presta Shop and I am sure there is an easy way around this. The shipping is the only thing that is stopping me using this on a live project.

Hope you can all help with what I am sure is a simple problem that I have over looked.

Best Regards

Link to comment
Share on other sites

There are a few files that you need to alter to change the formatting of the address.

If you just want to change from the customers view point then you need to alter athentication.tpl, address.tpl, addresses.tpl, order-address.tpl, these are all in your theme folder. Also address.php which is in the classes folder.

To change the admin aswell you also need to alter adminaddress.php and adminorders.php. These are both in admin>tabs folder.

Link to comment
Share on other sites

I still find it strange that the state is listed after the country, as most countries have counties or provences. All the previous shopping cart systems once the Country is selected allow you to then add the states, counties or provences.

Is this not normal?

Link to comment
Share on other sites

Ok.

Somebody. PLEASE help!

I'm using the latest version of PrestaShop, and about to pull my hair out over getting addresses to appear "American" style.

I've gone ahead and edited:
address.tpl
addresses.tpl
authentication.tpl
order-address.tpl

and even:
order-address.js

The customer now sees their address in the correct format on most of the pages, but for the life of me, I cannot find what file to edit in the "summary" phase of the check-out process! That is the last one I need to fix.

Anyone? Please?

Link to comment
Share on other sites

I've done it an easier way:

I went to the BACK PFFICE > TOOLS > TRANSLATIONS > FRONT OFFICE + BACK OFFICE + MODULE + just search through all the options > Click on the American Flag > Then I just swap over the Names

See my site.

x

Link to comment
Share on other sites

×
×
  • Create New...