cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all the Products from product search in the catalog ?

Former Member
0 Kudos

Hi Gurus,

In catalog search, if i give * and search, the first action that is called is bigSearchAction. But in this action they are populating only the first 2 items i.e when i check the itemList object in this action, it contains only the first 2 products. But in the end just before displaying the page, using itemPage, they are displaying all the products. But i want all the products in the bigSearchAction itself. In which class or how can i get all the products. Which object contains all these products??

Any help is highly appreciated!!

Thank you,

Lakshman.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Not sure if this could solve your problem, but you have a constructor in WebCatItemList:

public WebCatItemList(WebCatInfo theCatalog, IQuery query, boolean includeAccessories, boolean getAllItems)

A default call would be passing the catalog, your query, you can use 'false' in includeAccessories parameter and true in getAllItems.

This will return you a populated List with all the Products returned by your Query instead of just the first two items.

The default implementation uses inside WebCatItemList:

void populate() {

if (populateAll)

populate(-1);

else

populate(2);

}

where the int parameter is the 'upTo' variable.

Hope it helps,

Regards,

Daniel

Former Member
0 Kudos

Hi Daniel,

Thanks a lot for the help, problem is resolved by implementing the way you said.

Regards,

Lakshman.

Answers (0)