Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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
1831 273 423

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