mallrat Posted January 26, 2023 Share Posted January 26, 2023 Hi there. When a customer from the UK goes through the checkout steps, when selecting United Kingdom the drop down for adding US states is still active. So a UK address is added in full, click save, but an error says that a US State must be chosen. I checked in International>Locations>Countries>United Kingdom and the 'Contains States' button is set to 'No' I have tried the checkout process using other locations (eg in Europe) and the US state drop down does not appear. Any ideas? Prestashop v 8.0.0 Link to comment Share on other sites More sharing options...
juanrojas Posted January 27, 2023 Share Posted January 27, 2023 check that within the country in the backoffice, in the address format it is not visible the state field Link to comment Share on other sites More sharing options...
mallrat Posted January 27, 2023 Author Share Posted January 27, 2023 Hi and thanks for the reply. I just checked the Address Format as you suggested and this is what is in there... firstname lastname company vat_number address1 address2 city postcode Country:name phone So there is no State field. I have been comparing the UK settings to other countries where the US State does not appear and I cannot see any difference. Link to comment Share on other sites More sharing options...
ComGrafPL Posted January 27, 2023 Share Posted January 27, 2023 Can you make a screen from Countries / UK tab? There is a switch / button, "Contains states". Is it set to off? Link to comment Share on other sites More sharing options...
mallrat Posted January 27, 2023 Author Share Posted January 27, 2023 Hi Yes, the 'Contains States' button is set to off. Here is a screenshot. Link to comment Share on other sites More sharing options...
mallrat Posted January 27, 2023 Author Share Posted January 27, 2023 Update... I have just tried setting 'Contains States' to yes, saved, and then set it back to no and saved again but this has made no difference. Link to comment Share on other sites More sharing options...
juanrojas Posted January 27, 2023 Share Posted January 27, 2023 share your url Link to comment Share on other sites More sharing options...
Flitepal Posted February 26, 2023 Share Posted February 26, 2023 I'm having the same issue. Right now I'm testing prestashop locally on my WAMP. For some reason, country Bulgaria has a list of US states. The "contains_states" is 0. The place where I see this is the user checkout process. Running 8.0.1 Link to comment Share on other sites More sharing options...
Flitepal Posted February 26, 2023 Share Posted February 26, 2023 (edited) I would like to say in addition that the system is completely ignoring what is in the `address_format` table for country Bulgaria. I tried adding states for Bulgaria and enabling the option, tried adding VAT number as a field in the address form, however, it looks like it's displaying the same form as country United States, it only says "Bulgaria" in the country drop down. EDIT: It looks like whatever is set as "Default Country" in "International -> Localization", has an impact on the address format for user checkout - whatever the country is, it takes the format of United States EDIT2: What fixed the problem for me in the end is disabling "Set default country from browser language" in "International -> Localization". I tried debugging but couldn't find where the problem is. For people more technically familiar with the platform, in my opinion there is a conflict somewhere between Default Country and Browser detected country and that's causing the issue. Edited February 26, 2023 by Flitepal (see edit history) 2 Link to comment Share on other sites More sharing options...
Mindz Posted April 18, 2023 Share Posted April 18, 2023 Worked for me too, thanks! 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