DeliveryGroups always come out as empty array. #208
Replies: 6 comments 1 reply
-
Related Slack threads: https://shopifypartners.slack.com/archives/C0225DTE1M1/p1676282399890539 |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue. How do we get the associated delivery group IDs for discounting shipping? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, any update with this issue? |
Beta Was this translation helpful? Give feedback.
-
I have an issue that is similar where the discount that shows up in the cart is removed because the deliveryGroups becomes an empty array once I reach the checkout screen.. Anyone know if this is part of this issue or I am facing something else? |
Beta Was this translation helpful? Give feedback.
-
Has there been any news on this bug? |
Beta Was this translation helpful? Give feedback.
-
For future references and people who fall here looking for deliveryGroups in functions. Funny enough this object (deliveryGroups) does work as expected in the Checkout ui extensions where you do get the deliveryGroups even when pickup is created. Not the best solution but a workaround I did was add a Cart Property using the checkout ui when the deliveryGroups changed to or from pickup and write the info I need into the cart property. Not the best but well for now its something I guess. |
Beta Was this translation helpful? Give feedback.
-
Field of interest: https://shopify.dev/docs/api/functions/reference/order-discounts/graphql/common-objects/cartdeliverygroup
Input:
Input response: (when customer is on payment step of checkout)
Beta Was this translation helpful? Give feedback.
All reactions