Shopify merchants and developers have long wanted a seamless experience when customers mix shipping and local pickup in a single order. Starting December 7, 2026, the Storefront API finally bridges that gap: cart.deliveryGroups can now return more than one delivery group, and those groups can represent pickup locations. This change eliminates the disconnect that previously left cart data out of sync with checkout choices, reducing confusion and preventing broken checkout flows.
What Changed: Multi‑Group Delivery in the Cart
Previously, the cart object only exposed shipping groups via the cart.deliveryGroups field. If a shopper selected local pickup—or a combination of shipping and pickup—those selections were only visible in the checkout object. When the shopper returned to the cart, the API still reported a single shipping group, causing UI mismatches and, in some cases, failed address mutations. The update expands the CartDeliveryGroup object so that a cart can now contain:
• One or more shipping delivery groups
• One or more pickup delivery groups
The enhancement applies to all Storefront API versions, not just the upcoming 2027‑01 release, and will be rolled out gradually to all stores by mid‑December.
Who Is Affected: Developers vs. Merchants
Developers – Anyone building custom storefronts, apps, or integrations that query cart.deliveryGroups, call cartSelectedDeliveryOptionsUpdate, or run discount/validation functions that read delivery groups must adjust their logic. Assumptions that a cart contains a single shipping group are no longer safe.
Merchants – Store owners who enable local pickup will see the new behavior automatically. The primary impact for them is a more accurate cart view, which translates into fewer support tickets and higher conversion rates when offering mixed fulfillment.
Actionable Steps for Developers
mutation UpdateDelivery {
cartSelectedDeliveryOptionsUpdate(
cartId: "gid://shopify/Cart/1234567890",
deliveryGroupId: "gid://shopify/CartDeliveryGroup/987654321",
selectedDeliveryOptionId: "gid://shopify/DeliveryOption/111222333"
) {
cart {
id
deliveryGroups {
id
deliveryMethod {
__typename
... on ShippingDeliveryMethod {
shippingRate {
handle
}
}
... on PickupDeliveryMethod {
location {
id
name
}
}
}
}
}
}
}
Testing Guidance
Create a test store that offers both local pickup and standard shipping. Add items that are eligible for each fulfillment type, go through the checkout flow, switch between ship‑only, pickup‑only, and mixed modes, then return to the cart. Verify that:
• cart.deliveryGroups returns the correct number of groups.
• Each group’s deliveryMethod matches the selection made in checkout.
• No GraphQL errors appear when calling cartSelectedDeliveryOptionsUpdate or when your discount function runs.
Automated tests should assert that the array length of deliveryGroups is >=1 and that at least one group has __typename of PickupDeliveryMethod when a pickup location is selected.
Potential Pitfalls & How to Avoid Them
*Assuming a single shipping group* – UI components that map the first group to a shipping selector will now display pickup locations as shipping options, confusing shoppers. Refactor to iterate over all groups and branch on the __typename field.
*Address mutation failures* – When a cart contains a pickup group, address fields may be irrelevant. Guard any mutation that updates shipping address with a check that the target group’s deliveryMethod is ShippingDeliveryMethod before sending address data.
*Stale caching* – If you cache cart data keyed only on cart ID, remember that the shape of deliveryGroups can change mid‑session. Invalidate or refresh the cache after any checkout‑to‑cart navigation.
Where to Find More Information
Shopify’s developer docs provide the full schema for CartDeliveryGroup, a guide on supporting shipping + pickup in a cart, and details on split carts in checkout. Refer to the “Support shipping and pickup delivery groups in a cart” and “CartDeliveryGroup object in the Storefront API” pages for the latest JSON schema and example queries.
Conclusion & Next Steps
The ability to surface both shipping and pickup groups directly from the cart is a game‑changer for mixed‑fulfillment stores. By updating your queries, mutations, and UI logic now, you’ll prevent mismatched selections, reduce cart abandonment, and deliver a smoother checkout experience. Test thoroughly, adjust any single‑group assumptions, and watch your customers enjoy the flexibility of buying what they want—where they want it.
Ready to upgrade? Dive into the documentation, run the suggested tests, and let your storefront reflect the true state of every shopper’s cart today.
