Add parameters to autosearch.aspx to retrieve images, price and other product fields
The built in autosearch (autosearch.aspx) only returns Item name, part number, and whether the results are for a Product or Category. It would be advantageous to be able to have the ability to at least choose to have it return the items price and thumbnail as well. It would also be nice if you could choose to have other product fields included; something like autosearch.aspx?include=Primary_Category,Item_Thumbnail,is_droppship,price would include the products primary category, thumbnail and if the product is dropshipped. This would greatly extend the flexibility of the autosearch feature.
-
Josh,
We'll be making a change to autocomplete results so that hidden products are no longer returned -- while we're working on that, we're going to look into adding other fields to the results.
If we do add the fields, at this time it would probably be just to expose the data in the results returned in the json object -- you would most likely need to tweak the js and html in your theme to take advantage of it, in other words.
-- Austin
1 -
Hey Austin,
Thanks for the response.
That would work fine for my case, I have modified the js to reformat the results anyway, so if the data is in the json returned I can just modify the js file to pull that data.
If you guys do that, it would also be nice if you add a KB page about it.
Do you guys have any estimates on when you would be tackling this?
0 -
It might be easier to just use the REST api.
0 -
I thought about that, I have used the REST API quite a bit. However I did not really want to build one more thing I needed to maintain, especially when many systems offer the ability to at least show the image and price. This seems like something many sites would want.
0
Please sign in to leave a comment.
Comments
4 comments