Shopify / js-buy-sdk

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.
https://shopify.github.io/js-buy-sdk
MIT License
974 stars 255 forks source link

Bundles through JS Buy SDK? #975

Open cosmin-serbanescu opened 8 months ago

cosmin-serbanescu commented 8 months ago

Is there a way to get bundles through JS buy SDK? The bundles are created using the newly launched bundles app from Shopify.

robinsloan commented 4 months ago

I'm wondering about this, too.

robinsloan commented 4 months ago

Just to add a bit of color: I'm currently able to ui.createComponent("product", { etc. }) for bundles -- they behave the same as regular products in that respect.

However, when I select Add to cart for the bundle, the cart panel slides open, as expected, but nothing is actually added. There are no errors in the JS console, but in the response to the GraphQL request triggered by Add to cart, I see the message: "Variant product is not published for this customer."

Thanks for your consideration!

robinsloan commented 2 months ago

Hi there: it looks like several folks are curious about this issue. I'm wondering if we could get any info or guidance from a Shopify team member. Thanks!

beiLi522 commented 1 month ago

I'm wondering about this, too. I just add a bundle to cart by storefront API and get the same error: { "field": [ "lineItems", "0", "variantId" ], "message": "Variant product is not published for this customer.", "code": "PRODUCT_NOT_AVAILABLE" }

robinsloan commented 2 weeks ago

Hi there. I'm checking in on this again. Is there any chance this software can be updated to support Shopify bundles?