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.