Focusing on managing products, variants, and collections through the API.
Currently our themes' Product Recommendation section is showing the Best Selling products from our store. I'd like to change this to products which are related to the products which the visitor is currently viewing, based on for example the collection, product type or tags.(can be anything related)
Unfortunately i don't understand how to change this in the code, as i don't want to do this manually for various reasons. I have found some documentation, but can't seem to figure it out.
https://shopify.dev/docs/themes/product-merchandising/recommendations/related-products
Which theme are you using?