- Posts: 228
- Thank you received: 8
List of cities and streets
9 years 10 months ago #260234
by theguy
List of cities and streets was created by theguy
-- 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.
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.
9 years 10 months ago #260264
by nicolas
Replied by nicolas on topic List of cities and streets
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.
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.
9 years 10 months ago - 9 years 10 months ago #260313
by kyratn
Replied by kyratn on topic List of cities and streets
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
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: 9 years 10 months ago by kyratn.
Please Log in or Create an account to join the conversation.
9 years 10 months ago #260448
by theguy
Replied by theguy on topic List of cities and streets
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.
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.052 seconds