How to return the total number of search results using the Shopify Predictive Search Api?

Highlighted
New Member
3 0 0

I've implemented the Predictive Search Api on my site, however I'm looking to add a button which shows the total number of products found in the search ie. "View all 29 Results".

The results returned by the APi are currently limited to 10, is there a way I can retrieve the 'total' number of search results?

0 Likes
Highlighted
New Member
1 0 0

How were you able to implement Shopify's predictive search api? I am having trouble re-implementing it on the updated version of my current theme.

To answer your question. Unfortunately, Shopify's predictive search api limits you to 10 results. However, you are able to implement a view all results footer in the search results. You can see how I implemented this here smoketokes.com 

 

Screen Shot 2020-09-24 at 11.09.56 AM.png

0 Likes