There are conditions which result in an empty results page (by empty, I mean that no Amazon items are shown).

For example, see #1166614: Using "Amazon Browse" widget in panels/pages results in blank search results page.

At a minimum, it might be better to show a configurable message when no items are found, or, show the default product list along with the configurable message.

I'm of the opinion that when no keywords are provided, the module should fall back on some kind of reasonable default behavior.

For example, when a BrowseNode search does not provide any displayable results, the module should try to retrieve the top selling items in the BrowseNode and show those in the results, then let the user filter by entering keywords in the 'narrow by' search form.

We can get a list of top sellers for a BrowseNodeLookup query by adding the "TopSellers" to the query ResponseGroup.

Comments

mcurry’s picture

Title: Search Result page should always show something » Search Result page should show relevant products whenever possible

Updating title

rfay’s picture

Works for me.

mcurry’s picture

Assigned: Unassigned » mcurry

Assigning to mcurry..

bennos’s picture

subscribing here.

mcurry’s picture

If we display a configurable message, it ought to be possible to select an input filter for the message so we can use valid markup in case someone wants to embed links to other pages, or, default product lists using the [amazon ... ] filter. :D