Solved

Graphql get items of a bundle

Fleko24
Visitor
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!!

 

Accepted Solution (1)

PaulNewton
Shopify Partner
6275 574 1324

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.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


View solution in original post

Replies 2 (2)

PaulNewton
Shopify Partner
6275 574 1324

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.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Fleko24
Visitor
2 0 0

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

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