Graphql get items of a bundle

Solved
Highlighted
New Member
2 0 0

Hello!, I am developing a dashboard very similar to the order dashboard. The problem is this store is using the "bundle builder" app, so I can't see the products inside a bundle and I need to show them and count them.

orders.jpg

The question is how can I query that using graphql?

This is my query so far, I am missing the part that shows the products in a bundle:

 

query get_orders ($tagString){
    orders(first50,  query:$tag) {
      edges {
        node {
          lineItems (first:10) {
            edges {
              node {
                  quantity
                  title
                  product {
                    id
                    title
                  }
              }
            }
          }
          id
          name
          tags
          shippingAddress {
            name
            address1
            address2
            city
            province
            country
            zip
          }
        }
      }
      pageInfo {
          hasNextPage
        }
    }
  } `
 
I am new using graphql, so I am still learning a lot but I am running out of time, I will really appreciate any help!!

 

0 Likes
Highlighted
Shopify Partner
2294 116 352

This is an accepted solution.

You cannot get the "bundle" because the bundles do not exist on shopify at this time.

It's a convention that app is using Line Item Properties(LIP's) to track it's inventory.

At best you need to reach out to that app and see if they store any extra information anywhere such as a reference to the variant.ids in other LIP's or metafields.

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
1 Like
Highlighted
New Member
2 0 0

You are right, that app store data in the variant property!!

Thank you very much!! you helped me a lot! 

0 Likes