Custom view with trendingItems (recommend.js)

Hi, Im using Algolia with Shopify to create a trending items section on the site that shows whats popular / the most searched for. This is great and working fine!

However, I need to overwrite the default template provided by Algolia. Ive seen in the docs that you can use the view param to create a custom wrapper, but it only gives an example of a pre-made slider by Algolia. Has anyone made a custom view before?

By custom view i mean completely changing the default markup provided before the itemComponent is injected:

Screenshot 2022-08-02 at 20.50.26

TIA

1 Like

If anyone comes across this solution, we used the view() function to write our own logic and inject the content to a different container with a promise