In the homepage of my office rental spaces website, I want to search the products based on location, city and zipcode.
When user writes, it should auto suggest with pattern 'location, city, state' e.g 'Chicago downtown, Chicago, Illinois.
Below is what, I thought to implement it -
1. Create a new tab in the Product Back Office
2. Add Office Address fields - Address1, Address2, Location, City, State, Country, ZipCode (I need to show the office address on Product Details page as well)
3. Include it in the Search by adding the new fields in $weightArray and SQL request.
Please suggest, if approach is correct or I must try something else?
How will I get auto suggest pattern 'location, city, state'?