Shambola Posted August 12 Share Posted August 12 Hi, I am trying to improve the checkout experience to customers. I would like that if the customer chooses a language to view the site, at chekout he could have both the names of the countries in the language (and instead it always shows them in English...) and both pre-filled the country of the chosen iso. So a German customer could find "Deutschland" instead of having to search for "Germany" from the list.... atc etc Is there a way? Thanks Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 12 Share Posted August 12 Hi, by checkout module you mean address field in checkout process? Link to comment Share on other sites More sharing options...
Shambola Posted August 12 Author Share Posted August 12 Yes, I meant that I did not install modules like onepage checkout or others. It's the "out of the box" checkout. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 12 Share Posted August 12 If you activate geolocation PS does it for you, otherwise you need to override Classes/Address.php method initialize() Link to comment Share on other sites More sharing options...
Shambola Posted August 12 Author Share Posted August 12 Thank you for the suggestion but I have tried enabling geolocation. It does not pre-fill anything at all though unfortunately (updated maxmind db, etc etc) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 12 Share Posted August 12 should work according to code, did you try with a vpn to select different locations? Link to comment Share on other sites More sharing options...
Shambola Posted August 13 Author Share Posted August 13 Much simpler: do not pre-fill the country in the shipping address. I'm trying it as a non-logged-in user. I would understand if it didn't change it, but here it just doesn't fill it in! Link to comment Share on other sites More sharing options...
El Patron Posted August 19 Share Posted August 19 On 8/12/2024 at 5:24 AM, Shambola said: Hi, I am trying to improve the checkout experience to customers. I would like that if the customer chooses a language to view the site, at chekout he could have both the names of the countries in the language (and instead it always shows them in English...) and both pre-filled the country of the chosen iso. So a German customer could find "Deutschland" instead of having to search for "Germany" from the list.... atc etc Is there a way? Thanks 1. best practice is to have PS set visitor language from http language, i.e. if browse language is german, and you have german language enabled, they will automatically see german language. 2. when you install language pack is should add the country translation for that country, you can check this here admin-->locations-->countries remember, language is based off visitor http language....however if your shop does not have that language enabled the default language is served. you can test by changing your default browser language in browser settings, test from incognito each time as PS will not change language in cookie if already set. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now