cancel
Showing results for 
Search instead for 
Did you mean: 

Display product search result on page load

Former Member
0 Kudos

Hi,

I got a requirement to load the search result of products based on certain filter values without search button.Here the filters need to be set and result displayed when customer opens the page.Can we do this using configuration?Then how to display the result.

Rgrds,

Vijaya

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Vijaya,

Can you reuse the standard product search or do you need to enhance search/result structure?

If you have a custom search or by enhancing the standard one, then you just need to search and populate the result view when the corresponding search view is opened.

Please note that this cannot be implemented using the configuration, but in the code.

Thanks & Best Regards,

Leon

Former Member
0 Kudos

Hi,

No.we cannot reuse the standard.It is a custom search for products.You told search and populate,but how when there is no search button?How to set the filters?

Rgrds,

Vijaya

0 Kudos

Hi Vijaya,

You can do this in the DO_PREPARE_OUTPUT method. The implementation that you would have added in the search event had there been a search button should be done in this method, so that whenever this page is loaded it will do a search and populate the results.

Thanks & Best Regards,

Leon

Answers (0)