I am new to Shopify app development and have created an app with the following features:
- Admins can create rules to validate the cart based on quantity and amount.
- If a rule is enabled and the criteria are met, the checkout button will be disabled, preventing the user from proceeding.
According to Shopify’s documentation, we need to implement Shopify Functions for cart and checkout validation to handle server-side validation. However, I couldn’t find a way to retrieve rule data from the database in this process. I also don’t want to use metafields or metaobjects.
If anyone knows an alternative way to fetch data, please help.
Thanks in advance!