Standard storefront events and actions now support cart attributes
Source: Shopify Dev Changelog
Standard Storefront Events and Actions Now Support Cart Attributes
Shopify has added cart attributes support to its standard storefront events and actions system. The updateCart standard action now handles cart attribute updates, and a new shopify:cart:attributes-update event fires whenever an attribute update is initiated.
What Changed
Previously, developers needed to call the Storefront API directly to modify cart attributes. The standard updateCart action now processes attributes alongside other cart modifications. The new shopify:cart:attributes-update event triggers regardless of the source—whether changes come from your app, the theme, or another app. The event payload includes the complete new set of attributes and a promise that resolves with the update result.
Impact for Shopify App Developers
This update standardizes cart attribute management within Shopify’s event-driven architecture. Developers can now use the same updateCart action for all cart modifications instead of maintaining separate code paths for attributes. The new event provides visibility into attribute changes across the entire storefront, eliminating blind spots when multiple apps or themes modify cart data.
Implementation Considerations
Apps that currently use custom Storefront API calls for cart attributes can migrate to the standard action for consistency. The shopify:cart:attributes-update event enables apps to react to attribute changes from any source, which matters for apps that depend on specific cart metadata. Developers should verify that their existing cart attribute logic works with the new event system, particularly if they handle attributes set by other apps or theme code.
Stay in the loop
Get Shopify ecosystem news and positioning insights for app founders.