Jump to content

Change State Drop Down List to Search Box


raliabdillah

Recommended Posts

The State List should be filtered out by the country user selected, I do not know any country will have so many states (6000+).

You must be using the "state" for something else?

 

If you really want to use the search box style "state" selection, you will need to use jquery autocomplete plugin.

You may Google to find out how to use that plugin.

Link to comment
Share on other sites

  • 1 month later...

Hi all, Sorry for my very late response...

I am in Indonesia, we have 34 provinces, 400++ cities/districts and 6000++ subdistricts.

All shipping rate calculated based on subdistricts, but Prestashop can only filter country and state, so we have all subdistricts in state field.

 

If we cant convert the list to search field, Is there any method to filter it by country>Province>Districts>Sub-Districts?

Link to comment
Share on other sites

I think you will have to use jQuery autocomplete plugin /js/jquery/plugins/autocomplete/

 

You can look at back office product editing page - Associations tab as example.

The Accessory field is implemented by using this plugin

  • Like 1
Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...