Fetching product recommendations

We are currently using the productRecommendations (productRecommendations - Storefront API) query to create a ‘frequently bought together’ block on the product page. This isn’t a great solution, as the recommended products are sometimes somewhat random.

Thinking a better solution might be to periodically loop through orders, identity products that are actually frequently bought together, and then store the IDs in a metafield. This, however, requires a bit more setup.

Before working on this further, I wanted to make sure that there is no existing solution that would do a good or better job of this that what I’ve outlined above.

Any recommendations would be greatly appreciated, thank you in advance.

Well theres plenty of solutions out there with platforms like Algolia, Kleveu etc. Obviously they come with a cost.

It’s definitely something thats doable custom though.

Thanks Luke! Yep, no doubt it can be done custom, just wondering if there’s a way to tweak the existing functionality to work better (in our case, it’s recommending seemingly random products – I was hoping there might be a setting somewhere or similar that would allow us to specify we only want products that are actually bought together to be recommended). If not, then it might be that we have to develop something custom.