Option to check if the item can be delivered based on location of the customer #1843
Answered
by
michaelbromley
ramkishore-yerubandi
asked this question in
Q&A
-
Looking for a hook to listen to AddItemToOrder and run a check and fail the item to be added |
Beta Was this translation helpful? Give feedback.
Answered by
michaelbromley
Oct 18, 2022
Replies: 1 comment
-
I suggest you override the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ramkishore-yerubandi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest you override the
addItemToOrder
mutation to implement this - there's no other way to do it in such a way that you can cause the item not to be added if it fails some custom validation check.See https://www.vendure.io/docs/plugins/plugin-examples/extending-graphql-api/#override-built-in-resolvers