App reviews, troubleshooting, and recommendations
I am new to Shopify app development and have created an app with the following features:
As per Shopify’s documentation, Shopify Functions must be implemented for cart and checkout validation to enforce these rules on the server side. However, I am unable to retrieve rule data from the database, as Shopify Functions do not support API requests.
In Liquid, we can simply call an API to fetch data, but that approach does not work here.
If anyone knows an alternative way to retrieve and use rule data within Shopify Functions, please help.
Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
Yes of course,
To pass your database data to the cart and checkout validation function, you need to use metafields.
Refer to Shopify's official guide here: https://shopify.dev/docs/apps/build/custom-data
If you have any questions, feel free to ask!
were you able to get custom data from DB?
yes Irzum i have get it.
can you help me out in it, am trying to do the same thing, get data from the server by calling an api
This is an accepted solution.
Yes of course,
To pass your database data to the cart and checkout validation function, you need to use metafields.
Refer to Shopify's official guide here: https://shopify.dev/docs/apps/build/custom-data
If you have any questions, feel free to ask!
thanks, i just dm you, can you please look into it thanks.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025