PrestaShop Forums: Please help with address layout in Prestashop and State Placement - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Please help with address layout in Prestashop and State Placement


Please help with address layout in Prestashop and State Placement

#1 yebberdog

    PrestaShop Apprentice

  • 02 Jul 2009
  • Members
  • PipPip
  • 40 posts

Posted 02 July 2009 - 09:25 PM

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

Posted Image

Specialising in ecommerce solutions, social media marketing, CMS website and development

www.mulberryecommerce.co.uk


#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 03 July 2009 - 08:29 AM

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.

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 03 July 2009 - 01:51 PM

Thank you very much, I am not too good with code but I will give it a go, thank you for the pointer.

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 03 July 2009 - 02:05 PM

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?

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 10 July 2009 - 11:29 PM

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?

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 11 July 2009 - 08:26 AM

The order summary page is controlled through the order-address.tpl file.

Theres 2 sections in that file you need to change.

First is near the top of the file and the second is lower down at about line 42ish.

#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 11 July 2009 - 08:58 AM

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

#8

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 July 2009 - 07:06 AM

Yep. Got that one...changed code to:


  • {l s='Your delivery address'}





  • {$address.city}, {$address.state} {$address.postcode}



  • {l s='Update'}




Not the code affecting the summary area! :(





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users