control the availability of a shopify function

control the availability of a shopify function

aakankshagrover
Shopify Partner
1 0 0

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?

Reply 1 (1)

SBD_
Shopify Staff
1829 271 415

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