How can I get recommendations from multiple products?

Delio
Shopify Partner
17 0 1

Hello,

is there a way to concact or get recommendations from multiple products?

 

I try to modify data-url like this, but he get recommendations only from last item.product.id

 

  <product-recommendations
    class="related-products page-width"
   data-url="{{ routes.product_recommendations_url }}?section_id={{ section.id }}{% for item in cart.items %}&product_id={{item.product.id}}{% endfor %}&limit={{ section.settings.products_to_show }}"
  >   

 

Any ideas?

Replies 2 (2)

kaiyaa
Explorer
254 19 24

Hello @Delio 

 

You want to show multiple product recom in one product ??

 

Was I helpful? Buy me a coffee
For fast response Message me
Need Help Message me
Delio
Shopify Partner
17 0 1

Hello @kaiyaa ,

no, I want to show multiple recom in the cart. So take all the recom from the product in the cart and merge into one