Skip to content
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

customer address country selection issue in admin panel #28

Open
support-smartebusiness opened this issue Apr 1, 2019 · 3 comments
Open

Comments

@support-smartebusiness
Copy link

We are facing an issue where country dropdown defaults to United Kingdom when editing a customer address in admin panel, this is not ideal when editing non UK addresses, e.g. if a customer already has an address in Ireland and we want to edit this address to change street then we would like the country drop down to not switch to UK from Ireland.

Module: pcapredict/tag 2.0.6
Magento: 2.2.4

@Lee-Indez
Copy link

Lee-Indez commented Jul 12, 2019

I've noticed this when creating an order in admin for alternative store views other than GB - when you click 'get available shipping methods' it defaults the shipping address back to UK.

For now I've removed all of the layout xml updates for admin except tag_settings_index.xml - this does mean that it can't be used but its better than not having shipping rates when creating admin orders!

@thomas-harding
Copy link

I know this extension is defunct now, but I've been in contact with Loqate about this issue - it occurs on the front end too - so customers selecting a country other than the default (in this case UK) will be reverted to UK in the payment step.

This is what they said in support:

This bug that occurs on the payment step of the Magento 2 checkout process is related to our default Ip to Country setting. When engaged, this setting automatically runs on page load, and can result in the country resetting the country in the Shipping address. In order to resolve this, it is recommended that the following steps are performed:

  1. Select the Magento2 | (Site) - One-Step Checkout-1 - Address in the Your Services area of the account
  2. Access the Customise tab and select a default country to replace the option "Find visitor by country IP"
  3. Access the Mappings tab to edit the Country field and untick the Country box
  4. Repeat the above steps on Magento2 | (Site) - One-Step Checkout-2 - Address

These steps will turn off the automatic IP detection used by the product, and therefore stop the lookup from refreshing the country on the Payment stage of the checkout. These steps will work on any Magento 2 setup, or service in use on the Magento 2 checkout page, including custom generated services.

So even though this advice doesn't necessarily apply to the correct extension, it could well be an issue in the Loqate account as opposed to Magento.

@Flipmediaco
Copy link

Flipmediaco commented Apr 19, 2023

Following feedback from support. We found this issue was resolved by removing "field mode" "Country" from the country field mapping for offending service. In our case we removed the Country Field Mode from country field mapping for all services.

"You can adjust this behaviour by disabling the "Country" field mode in your installation under the Mappings tab."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants