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?
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024