Skip to content
Discussion options

You must be logged in to vote

The Search API counts inline banners as results because they affect pagination. To get a total count of only the product results you would have to subtract the inline banners from the total count:

const totalResults = store.pagination.totalResults - (store.merchandising.content?.inline?.length || 0);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by korgon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants