Functions and Their Interaction with the Customiser #388
b-wall
started this conversation in
Feedback: _Development and Deployment_
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have a live delivery function, that takes in and processes delivery options based on the title. This throws an error and
panics
if all delivery titles are hidden, as it should always show one.I started receiving errors from a live store using my function, and upon investigation I realised that the store owner navigated to the checkout in the customiser, which contains dummy delivery title data, and caused the function to throw an error.
This was not ideal as error checking on the function should only be reflective of the live checkout at the time.
I would expect that either:
a) The function does not throw errors as the dataset in the customiser is different
b) (Preferable option but more work) The checkout in the customiser reflects the live checkout, including any checkout data like shipping rates.
To replicate:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions