Hi Everyone
I am trying to fetch recommended products (COMPLEMENTARY products) and display on the product detail page. I used this query to get the complementary products:export let COMPLEMENT_PRODUCT_QUERY = #graphql query getComplementaryProductRecommendations( $productId: ID! $count: Int $country: CountryCode $language: LanguageCode $intent: ProductRecommendationIntent! ) @inContext(country: $country, language: $language) { complementary: productRecommendations(intent: $intent, productId: $productId ) { ...ProductCard } additional: products(first: $count) { nodes { ...ProductCard } } } ${PRODUCT_CARD_FRAGMENT} ;
And in the product handle I am passing required variables :
const complementary = storefront.query(COMPLEMENT_PRODUCT_QUERY,{
variables: { productId:product.id, count: 3, intent:‘COMPLEMENTARY’}
});
I get some products but wanted to know if Shopify has some set of default complementary products or it is configurable from the Search and Discovery app? I configured some products but I donot get them here.
Thanks,
Khasim