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
Add B2B examples to hydrogen #1677
Comments
@dustinfirman any sense of the work required to have Hydrogen support Re: Template — would be keen to hear what you were thinking for that. Right now @juanpprieto is building out an example of how to build a "Quick Order List" in Hydrogen. I think that should be sufficient? But curious what scope you had in mind. |
Hey @benjaminsehl
I haven't dug into the hydrogen codebase, so Im not sure the effort required for supporting I don't want to hold up the
A quick order list would be great, but I think there are a few other things that would be nice to have examples for
For reference we have a (somewhat messy) demo store that is the hello world hydrogen template + changes we needed to get B2B to work: https://github.com/Shopify/b2b-headless-storefront-prototype |
Thanks for sharing these examples @dustinfirman Feels like we should definitely scope this well to make sure we cover these different use cases. 2024-04 seems like a good target for it. Will circle back once we have a chance to discuss internally |
Do you have any updates on this? How can we get the prices for a b2b in hydrogen? I am trying to build a B2B store with it, but it looks like we cannot get contextualised prices in the storefront API. |
@albertot Support for B2B on the storefront API is currently in unstable and official docs are in progress. To get contextualized prices you will need to set your API version to unstable. If you want to get started now I can give provide the basics. We have added a
Adding this to your queries will contextualize them for the catalogs assigned to the company location provided. The The And finally you will need to update the buyer identity on cart
Hope this helps 🙂 |
@dustinfirman, this is very helpful; thanks for sharing it. Do you think this feature could land on the release 2024-04? |
@albertot We are targeting a |
Hi all, |
@cuongvu164 We noticed this error last week and are currently working on a fix. This hydrogen example will be merged after it is fixed. |
@dustinfirman Okay, thank you |
@cuongvu164 The 404 error for contextualized queries should be fixed now. Let me know if you are still running into the issue. |
It works!! Thank you |
Currently hydrogen only supports country and language for
@inContext
. To support B2B for headless we need to have pass thebuyer
to@inContext
Also, do we want to add a hydrogen b2b template to make it easy for devs to start?
Update: We are going to make a change to cart to support B2B buyers via updating the buyer identity. This means the only changes needed here would be some examples.
The text was updated successfully, but these errors were encountered: