-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bundles created with the Shopify App (Summer 2023) can't be added to cart #125
Comments
Update: I couldn't spot any. 🤨 It seems that it's now showing the right quantity and inStock. |
hey there @jpvalery, the new Shopify bundles feature hasn't been tested with this setup yet. I imagine there's a lot more going on under-the-hood with it that's net new for HULL. Also, considering the current version of HULL still uses the Shopify Buy SDK and a custom Sanity sync setup, there are likely some incompatibilities with the new Shopify bundles release. I have plans to update HULL in the coming months to use a more modern flow (using Shopify's hydrogen-react and the sanity-connect plugin) which will likely have better support for the new Shopify Bundles. Until then, feel free to continue looking into a fix and issue a PR if you find a solution! 🤘 |
Updating this as I'm seeing now that they can't be added to cart. I couldn't spot any difference when I logged newCheckout to the console. Trying to figure this out and will update the issue with my findings |
Continuing my investigation, I found that adding the scope Still not able to add them to the cart (like this unanswered thread in their forum https://community.shopify.com/c/hydrogen-headless-and-storefront/how-to-add-product-in-cart-using-node-and-graphql-apis/m-p/2021952). I have updated my ticket and opened a forum post to try and find what's missing here 🤔 |
Seems that another person facing the same issue got us a potential solution. doing
@ndimatteo would you happen to know if this is doable with the shopify-buy package? Their doc isn't exactly clear and I'm checking in the off chance you would know. Otherwise seems there's this option:
Lines to update: Lines 303 to 307 in 699c570
|
Apparently Cart can't be handled by the JS SDK And the Shopify support team on the ticket told me they wouldn't help with this. So GraphQL queries seem the only option... I'm thinking that adding a cart object to initialContext and then leveraging graphQL queries for add/remove/update might be the best way to go. Unsure if that should be a PR seen the massive change that would represent? If it should, I'm more than happy to partner on that migration—I have a good grasp on the queries/mutations needed to create cart, add/remove items; I could benefit from some guidance on how to integrate that with the current context/setup. |
Hey there @jpvalery! Appreciate you digging into this to see what the options are for a solve. As suspected, it sounds like the buy SDK is just not up-to-par with some of the newer features of Shopify. Happy to review a PR, but I think a lot of this will be addressed with the next release planned ( |
Of course @ndimatteo! Least I could do! I'm going to try and get this migrated over GraphQL queries with the following caveats:
|
Fixed in #129 by jpvalery@1425889 |
Just wanted to say thank you @jpvalery for outlining your journey so thoroughly here. |
Hey,
I've installed Shopify newest app for bundles (https://apps.shopify.com/shopify-bundles) and found that the quantities are not coming over properly.
For instance, I have a bundle with 8 units available, yet it shows as "Out of stock" with Hull.
I'm happy to open a PR and work on a fix but I could use some support in identifying the root cause of this.
At the moment, I'm guessing the course of action would be
/api/shopify/product-update
to get the full request from Shopify/api/shopify/product-update
so that it's properly addedThe text was updated successfully, but these errors were encountered: