Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Storefront API - GraphQL - Product Recommendations - Intent: Complementary

Storefront API - GraphQL - Product Recommendations - Intent: Complementary

kpowelltech
Shopify Partner
3 0 0

I'm making a Storefront API call to retrieve product recommendations with the intent complementary.  However, this is returning an empty products array.  When switching the intent to ```RELATED```, my product recommendations return from the call.  Can anyone share any insight as to why this may happen?

 

Context - I develop customer solutions for the Tapcart app and my merchant wants to display complementary product recommendations and not the default related recs.  

Reply 1 (1)

SBD_
Shopify Staff
1831 273 423

Hey @kpowelltech 

 

I think complementary products need to be set manually before the API will return them. Have you already created these?

Scott | Developer Advocate @ Shopify