A way to add Configuration needed for cart-and-checkout-validation-api functions #206
Replies: 7 comments 14 replies
-
Without merchant configuration, cart validations are kind of use-less so support for merchant config would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
-
For the use cases, I was looking at, I need to supply some settings/config data which will differ from merchant to merchant, otherwise, validation functions are pretty useless, can only do some basic logic, and I don't want to litter metafields of each product with duplicate information, another option is to allow shop metafields access in function then app devs can populate shop metafield with configuration data for each merchangt |
Beta Was this translation helpful? Give feedback.
-
Need to block checkout based on zipcodes but those differ merchant to merchant and merchants want to update the list continuously which is not possible without a metafield on the function. Noticed metafield is not supported for this function which seems to be unique to the validation function - https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql/common-objects/metafield |
Beta Was this translation helpful? Give feedback.
-
Hi folks, thanks for the feedback. Support for configuration via metafields is coming soon. |
Beta Was this translation helpful? Give feedback.
-
The metafields are working but still variables are not working. here |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this? |
Beta Was this translation helpful? Give feedback.
-
Closing as it is implemented. |
Beta Was this translation helpful? Give feedback.
-
Hi, currently is there no way to store and retrieve the configuration for the function?
Eg: The example function in this guide uses
orderSubtotal
value of $1000. This value will differ from merchant to merchant. So we need a way to store this in a metafield and retrieve it in the function.I tried the following
But got "invalid id" error
If this is already in pipeline, that would be awesome!!
Excited to explore the possibilities with this API 🤩
Beta Was this translation helpful? Give feedback.
All reactions