selectedDeliveryOption is always null in the input to function #201
Replies: 5 comments
-
This only happens in delivery customizations, but works fine in payment customizations. |
Beta Was this translation helpful? Give feedback.
-
I'm getting |
Beta Was this translation helpful? Give feedback.
-
Hey, Any solutions to this problem ? |
Beta Was this translation helpful? Give feedback.
-
is there any update on this? the bug still exists until now |
Beta Was this translation helpful? Give feedback.
-
I had a conversation with someone at Shopify, and they explained that the delivery customization function operates even before the user selects a delivery option, which is why it returns null. This makes sense, as it’s necessary to display only the relevant delivery options. I suggest they update the documentation to clarify this and remove the mention of the selected delivery option, as it is leading to confusion among developers. |
Beta Was this translation helpful? Give feedback.
-
Here is the checkout, where I have tried to select a delivery option and reload checkout, it does seem to remember what delivery option I selected last time.

But selectedDeliveryOption in the input to the function is always null, no matter what I try, it is never set to any value other than null.

Is this a known issue? or am I doing it wrong some how? 👀
Beta Was this translation helpful? Give feedback.
All reactions