how to fetch related product as per there category
hello guys
how to fetch related product as per there category
i have to fetch categories product in related product section
above of share your look area
how can i do that
15 Replies
hello @rohrig
Hi @Altamash π , take a look here: https://developer.adobe.com/commerce/webapi/graphql/schema/products/queries/products/#retrieve-related-products-up-sells-and-cross-sells
how can i do that in vue storefront
What version are you using?
I think you were using VSF2, correct? https://docs.vuestorefront.io/magento/api-reference/magento-api.relatedproduct.html
Vue Storefront 2 for Magento
Documentation for the Magento connector for Vue Storefront 2
there is a
useRelatedProducts
composable therehow to use this ???
Here's an example: https://github.com/vuestorefront/storefront-nuxt2-magento2/blob/12acb91debf9223a1c873c07c6325ac39d82330b/modules/catalog/product/components/RelatedProducts.vue#L19
GitHub
storefront-nuxt2-magento2/modules/catalog/product/components/Relate...
Magento2 Integration for Vue Storefront 2. Contribute to vuestorefront/storefront-nuxt2-magento2 development by creating an account on GitHub.
can i shared my screen once
@rohrig can i share my screen??
Please add screenshots and whatever questions you have. I can try to help. π
ok
this related product code
@rohrig how can i change into category product related ??
hello @rohrig
hi, I don't understand the question
i have to fetch category product in related product section