T
T
thinkkaka2020-06-05 01:58:59
Search engines
thinkkaka, 2020-06-05 01:58:59

Which WordPress search and filter add-on would you recommend?

I need to show suggestions in the search field when entering a country. After selecting a country, a dropbox would appear with the possible cities of the selected country. Then, by analogy, streets, houses, ....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-06-05
@azerphoenix

I won’t tell you a ready-made plugin ... But I can tell you how this can be implemented approximately ...
I recently wrote something similar in java, but the principle is the same in PHP ...
Here, this is a dropbox + ajax search
https://developer. snapappointments.com/bootstrap-s...
https://github.com/truckingsim/Ajax-Bootstrap-Select
Write the server part and return the desired list for the entered word or part of the word (countries, cities, etc., respectively). In principle, it is possible without Ajax... but as for me, this entire list should not be given to the client at once...
Well, then using js you make a selection if such and such a country is selected, then give the cities of this country, and then when choosing cities, give away streets, etc.
Another question is where to get the list of countries, cities, etc.. A third-party service and work with the REST API will help here.
Here, for example - https://dadata.ru/api/suggest/#about-address

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question