shipperhq / module-address-autocomplete

ShipperHQ Address Autocomplete for Magento 2
Open Software License 3.0
15 stars 20 forks source link

Restrict autocomplete by countries #41

Open VictorSoaresRedstage opened 10 months ago

VictorSoaresRedstage commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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