Jump to content

Homepage Custom Search


Recommended Posts

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'?

Link to comment
Share on other sites

Basic idea is correct.

 

We had a client who wanted implement car search, in this case you have to choose brand, model, year, so really close what you want.

At first client wanted to use some module, that allows to set up chained select boxes (I do not remember the name of the module) but in the end we decided to code everything ourselves. What I want to say there are modules that implement something similar to what you want, you just need to find them.

Link to comment
Share on other sites

Thanks Simonas.

 

Sorry if I was not clear at the first time above. It is not the incremental search I want.

It is exactly same as how it does today in the default Prestashop implementation - In the homepage search field, when user types in something, it auto suggests with a pattern "parent category > product name".

I want the auto suggestion with a pattern "location, city, state".

Link to comment
Share on other sites

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...