How to access bundles' products in Storefront API #215
-
Hi everyone, I'm able to query product bundles in the Storefront API, I just don't know how or if it is possible to get the products the bundle consists of. Hope someone can point me in the right direction. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Hey @marnauortega 👋 . What app are you using to manage bundles? |
Beta Was this translation helpful? Give feedback.
-
I'm using shopify's first-party newly released product bundles app: https://apps.shopify.com/shopify-bundles |
Beta Was this translation helpful? Give feedback.
-
It's 2024 and we have the |
Beta Was this translation helpful? Give feedback.
-
This was incredibly difficult to find, finally chatgpt o1-preview was able to solve it. See below as an example and good luck in Shopify GraphQL land. This gives the parent product, along with all of its sub products and quantities.
|
Beta Was this translation helpful? Give feedback.
-
Hi there, thanks for sharing this! I was able to find a solution, I used the productVariantComponents, I'll pasted here in case someone else need it:
|
Beta Was this translation helpful? Give feedback.
It's 2024 and we have the
components
field on product variants 🙌