Discussing Shopify Functions development, deployment, and usage in Shopify apps.
How can we control the availablity of shopify function in a shopify app according to the customer purchase plan?
Like I want to let the function get added into shopify backend only if customer has purchased our app plan, or how we can control the execution of that shopify function in an app?
Hey @aakankshagrover
I think this can be achieved by using metafields - i.e store the plan details in a metafield and conditionally run the function based on that value.
Scott | Developer Advocate @ Shopify