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

Restrict autocomplete by countries #41

Open
VictorSoaresRedstage opened this issue Dec 15, 2023 · 2 comments
Open

Restrict autocomplete by countries #41

VictorSoaresRedstage opened this issue Dec 15, 2023 · 2 comments

Comments

@VictorSoaresRedstage
Copy link

Hello,

It's not an issue but a recommendation for the module if anyone can work on this. It would be good to have a config on ADMIN to select the countries you want to restrict the autocomplete.

Documentation: https://developers.google.com/maps/documentation/javascript/place-autocomplete#restrict-predictions-to-a-specific-country

Example of restricting to US:

autocomplete.setComponentRestrictions({
      country: ["us"],
});

Thanks,
Victor Soares.

@WSAlewis
Copy link

Hello @VictorSoaresRedstage,

Thanks for sending across this recommendation.

I'll go ahead and pass this feedback along to our development team to review.

Regards,

Lewis Kennedy - ShipperHQ / WebShopApps Support

@shqsupport
Copy link

Hello @VictorSoaresRedstage,

Once again, we appreciate you spending the time to pass over this recommendation.

Our development reviewed the suggestion and we'll keep it in mind for future development, should we see more requests it may expedite the functionality request.

Thanks,
Michael

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

3 participants