-
(edit : is there a better place to discuss this issue? ) Hi, while trying out Hydrogen, I've noticed that when you add an item to the cart, the create_cart or update_cart webhooks does not trigger on any apps that subscribe to them on the same store. Checkout webhooks seems to arrive as expected. I can see that a GraphQL request is sent on the wire (mutation CartLineUpdate [...]) so the Shopify server is made aware of the cart update. Is there any additional setup I need to do to get this to work? Or is expected not to work? thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @hrstrand! The new Cart API inside our Storefront API is actually different from the traditional Cart you use in a Liquid storefront. This is why the webhooks aren't firing. I've chatted with our API development team, and they're going to look into this further. Thanks for flagging this. |
Beta Was this translation helpful? Give feedback.
-
Hey @hrstrand! Thanks for flagging this to us 🙂 What's the goal you're trying to achieve by using create_cart and update_cart webhooks? |
Beta Was this translation helpful? Give feedback.
-
Hi @aurelieyeh - yes, I am working on an app that displays realtime analytics for a store. Much like the Shopify LiveView. So my app feeds on all sorts of events, including these cart webhooks. I could most likely get this information from events in the browser (did not check in details= - is that a preferred way in case of a Hydrogen app? I guess that many other apps that are already live feeds on this data too via webhooks. thanks |
Beta Was this translation helpful? Give feedback.
Hi @hrstrand! The new Cart API inside our Storefront API is actually different from the traditional Cart you use in a Liquid storefront. This is why the webhooks aren't firing. I've chatted with our API development team, and they're going to look into this further. Thanks for flagging this.