Hi,
When making an International order through admin the country for shipping address always changes back to default after the Ajax request finishes, I.E If I am doing a Europe order and the default country is France, I select Germany from the drop down the page will load and then shipping country flicks back to France. The billing address country works as it should.
Has anyone come across this issue before?
Thanks in advance!
magento2.1.11
Solved! Go to Solution.
Hi,
I have a solution for this so it may help anyone in the future with the same issue.
The issue lies in the core_config_data table, If you have multiple storeviews one of them will be set as default. This storeview is the parent in which all other storeviews inherit. In the core_config_data table you can limit the allowed counties for any given storview by using the path "general/country/allow" and setting the value to be the country codes the want to allow separated with a comma.
If you limit the default storeviews allowed countries, e.g GB,JE,GG this will mean on the front end when in the default storeview the user can only checkout using those 3 countries.
The problem though is that in the admin, if you try and make an order using another storeview and select Ireland as a country it wont be allowed because you haven't allowed it for the default.
So to summarise, limiting countries for storeviews works fine on the frontend but causes issues in the admin if the default storeview doesn't allow the country you are trying to use on an admin order.
Thanks!
Hi,
I have a solution for this so it may help anyone in the future with the same issue.
The issue lies in the core_config_data table, If you have multiple storeviews one of them will be set as default. This storeview is the parent in which all other storeviews inherit. In the core_config_data table you can limit the allowed counties for any given storview by using the path "general/country/allow" and setting the value to be the country codes the want to allow separated with a comma.
If you limit the default storeviews allowed countries, e.g GB,JE,GG this will mean on the front end when in the default storeview the user can only checkout using those 3 countries.
The problem though is that in the admin, if you try and make an order using another storeview and select Ireland as a country it wont be allowed because you haven't allowed it for the default.
So to summarise, limiting countries for storeviews works fine on the frontend but causes issues in the admin if the default storeview doesn't allow the country you are trying to use on an admin order.
Thanks!