Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey,
We are migrating to Storefront API 2025-01 and it seems like there is a bug when querying a carts delivery addresses. When I use the regular query on my cart I always only get ONE delivery address, although the checkout populates multiple addresses. One more hint why I think this is a bug is that if I filter only for non-`selected` addresses I get the selected one?
https://shopify.dev/docs/api/storefront/2025-01/queries/cart
query getCart {
cart(id: "gid://shopify/Cart/...") {
delivery {
addresses(selected: false) {
selected
oneTimeUse
id
address {
__typename
... on CartDeliveryAddress {
address1
city
}
}
}
}
}
}
which returns
{
"data": {
"cart": {
"delivery": {
"addresses": [
{
"selected": true,
"oneTimeUse": false,
"id": "gid://shopify/CartSelectableAddress/123",
"address": {
"__typename": "CartDeliveryAddress",
"address1": "Street 12",
"city": "City"
}
}
]
}
}
}
}
Is there anything I'm missing?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025