HULL
HULL copied to clipboard
Cart workflow vs Checkout workflow in Storefront API
Hey @ndimatteo, love Hull, really stellar starting spot for headless Shopify (and killer work on the demo store design!)
In the process of kicking off a build for a client, and subscriptions are a concern for them. Just did some cursory looking around, and seems like the Checkout workflow in the Storefront API is unable to handle Selling Plans for subscriptions and the like, and Shopify's advocating for migrating to the Cart workflow to solve for those sorts of issues.
Any plans to move Hull away from the Checkout workflow and to the Cart workflow?
Similar question over in the Vercel Commerce repo - https://github.com/vercel/commerce/discussions/558
Hey there @aeblin, I'm glad you're enjoying hull! 🤘
We're actually not using either of these workflows currently. Instead, we're using the Shopify Buy SDK to power the cart and checkout experience in HULL.
I'd love to move to the current workflows recommended by Shopify for headless, but it's a bit involved and I don't have a roadmap for it just yet.
If you'd like to start a branch to work on this that would be more than welcomed! 🙏
Totally my bad there, I mistook the Buy SDK's "create a checkout" syntax for the Checkout workflow in the Storefront API.
As far as I can tell, the Buy SDK also doesn't support selling plans? I'll see about branching and setting something like this up, thanks @ndimatteo!
No problem @aeblin! You're right that the Buy SDK doesn't have clear support for selling plans at the moment.
Perhaps this can help (I know it references Recharge though): https://github.com/Shopify/js-buy-sdk/issues/854#issuecomment-929488388
Let me know how it goes!