-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add states to the United Kingdom localization pack #19430
Add states to the United Kingdom localization pack #19430
Comments
Thanks for opening this issue! We will help you to keep its state consistent |
Hi @Gionny996 , Second, in the xml file for the UK, there aren't any states available. |
Hi @PrestaShop/prestashop-product-team , Do you think it is possible to add the states for the UK in PS ? Thanks! |
@LouiseBonnard should we add it to this epic - #17564 ? |
Hi @Gionny996 and @MatShir, yep, you can only add them manually in the back office. By default, states are added to the code only for countries whose address format requires states for deliveries. Like for India, cf. #15627. It does not seem to be the case for Great Britain so we probably won't do it on our end but if you ever feel like improving this section, do not hesitate to create a pull request to contribute. :-) |
inside gb.xml is missing completely the part:
so is not possible to import them like you can do for Italy or USA. i've made a CSV with ISO code ,name of the "state", Subdivision category and Parent subdivision GB-BKM,Buckinghamshire,two-tier county,ENG More info here: https://en.wikipedia.org/wiki/ISO_3166-2:GB So if someone want to add in the righjt format inside3 the xml all peole will be able to import in the correct way |
UK have very different price for delivery from the mainland to island and north ireland or scotland. So all selelrs that need to sell in GB need to implemant manually the "states". Same for Portugal that has many island at shipping price that soemtime sis twice of the normal. |
I have tried to add the counties and remove UK from EU in this gb.xml. The import works for 1.7.7.0 I would like to automate the inclusion of states (counties in UK speak) to produce a drop down list for customer sign ups as per USA for instance. I have added the tax rules for UK in same way as USA but not sure it's needed or even if the order and numbering is relevant. I'd ultimately like to make the shipping dependant on the country not zone too if that can be automated? Hopefully a start for someone who actually understands what's needed! Jem |
I have noticed that on my file import when a state (county) iso code exists in another country the tax rule appears to be allocated to that iso code eg cam uk goes to Campeche in Mexico. Do I need to reorder the file or is it a bug country and state are not filtered on import? I also think the zone should be a custom zone to help postage allocation to within UK or outside UK not Europe (non-EU) even if that were correct in fact |
Hello, I believe we will have to split this issue fix in at least two pull requests: one to add the states, and another to add the tax rules. So I created the first pull request for this issue in PrestaShop/LocalizationFiles#13 The added states are based on ISO 3166-2 (https://www.iso.org/obp/ui/#iso:code:3166:GB) which has the latest changes up to November 25, 2021. It seems the suggested "states" by HartLarsson (I believe he was based on Wikipedia) are a little bit outdated. For example,
Added to ISO 3166-2 (not in HartLarsson suggestions)
etc, etc, etc. I believe there are no states in the United Kingdom, but they have divisions (countries England, Scotland and Wales) and subdivisions (boroughs, cities, counties and districts). I am not from UK, but I added "states" based on the ISO 3166-2 (https://www.iso.org/obp/ui/#iso:code:3166:GB) which has the latest changes up to November 25, 2021. I added divisions (countries) and subdivisions as if they were states. I would appreciate, if possible, either HartLarsson or any UK native to check the changes in PR PrestaShop/LocalizationFiles#13 |
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots: https://prnt.sc/sovu00
The text was updated successfully, but these errors were encountered: