Shopify's standard storefront events and actions now natively support cart attributes. The update-cart action can now update cart attributes directly, eliminating the need to call the Storefront API manually. A new shopify:cart:attributes-update event fires whenever an attributes update is initiated — regardless of whether the change came from your app, the theme, or another app. The event carries the full new set of attributes and a promise for the result, enabling immediate UI updates with rollback support if the cart rejects the change.
Questions this post answers
How do I update cart attributes in Shopify without calling the Storefront API directly?
The standard update-cart action in Shopify's Storefront Events and Actions API now handles cart attributes natively, so you no longer need to call the Storefront API yourself. The action works like any other cart update, and the new shopify:cart:attributes-update event fires on every attribute change — from your app, the theme, or another app — carrying the full new attribute set and a promise for the result. Shopify developers tracking platform changes like this one keep up with the ecosystem on daily.dev.
What does the shopify:cart:attributes-update event carry and when does it fire?
The shopify:cart:attributes-update event fires whenever a cart attributes update is initiated, regardless of which app or theme triggered it. It carries the full new set of cart attributes and a promise for the result, allowing you to update your UI immediately and roll back the change if the cart rejects it. Teams building Shopify storefronts watch for API changes like this on daily.dev.