user google maps

  • Posts: 138
  • Thank you received: 4
6 years 1 month ago #299165

-- HikaShop version -- : 4
-- Joomla version -- : 3.16

hi,
I want when user add addreess in checkout Billing or Shiping address , use google maps (geolocation my current location).
is it possibile? how do it?
so thanks


Joomla Developer | am.ebrahimzadeh[at]gmail.com
Last edit: 6 years 1 month ago by aminweb.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
6 years 1 month ago #299174

Hi,

The geolocation systems, which base themselves on your IP address, can only be a rough guess at where you are. They can give the country, the state and sometimes the city. But they normally can't give you the street name or number. And sometimes the city is not possible or not accurate enough.
So adding such capability to try to autofill the address fields would be kind of klunky I think.
On top of that, most browsers have auto fill systems so that the customers can easily fill automatically an address form based on previous similar address forms.
Now if you really want to do something, we do have a trigger onHikashopBeforeDisplayView in HikaShop so that you can prefill the address fields automatically just before the address form view is being displayed thank to a custom plugin you could develop:
www.hikashop.com/support/documentation/6...hopBeforeDisplayView

The following user(s) said Thank You: aminweb

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum