List of cities and streets

  • Posts: 228
  • Thank you received: 8
7 years 10 months ago #260234

-- HikaShop version -- : Latest

Hello,

I've got a request from a client to add a function to the text box of city and street with autocomplete of names. The idea is to have two full lists of all cities and streets in my country. When a user enters the first letters of the city the field will give suggestions of compatible cities. After selecting the city a list of streets will be available but this time only streets that are available in the selected city. Once again , the user will fill the first letters and the box will auto complete it. Full dependency between the two fields.

Hope I was clear enough. Is this something that can be achieved with Hikashop?

Thank you in advance,

Guy.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 10 months ago #260264

Hi,

There is no option for that.
But if you're a developer, you can do it. I would recommend to create a hikashop plugin and implement the Fields API:
www.hikashop.com/support/documentation/6...entation.html#fields
That way, you can create your own type of custom field with the auto complete feature.
You can then either use an address auto complete service like this one: smartystreets.com/articles/autocomplete
Or have your own database to generate the auto completion.

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

  • Posts: 1119
  • Thank you received: 114
7 years 10 months ago #260313

Hi,

You also can do it via javascript and call your autocomplete.
As example i call autocomplete from my country post service which has all city,street data. So i dont need to create my own and its always up to date.
I suggest to check local post service and if they have some kinda autocomplete you could add it to yourself.

Thanks

Last edit: 7 years 10 months ago by kyratn.

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

  • Posts: 228
  • Thank you received: 8
7 years 10 months ago #260448

Thank you both for your advice and answers. I guess developing it will be the only option :)
Could be a nice addition for future releases of Hikashop tough I guess your wishlist is quite full.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum