How To Enforce Paywall For Theme App Extension's App Blocks In Theme Editor 2.0?

bigdaddy
Shopify Partner
6 0 0

Hi. To solve the question in title, I tried out a couple of my competitor apps. I was able to use their Theme App Extension's App Block in the theme editor despite not approving the free trial. So now I'm just confused.

 

How are you supposed to enforce paywall for Theme App Extension's App Blocks?

Reply 1 (1)

1080
Shopify Partner
296 9 50

@bigdaddy  So they mange the flag like who has paid active plan then the app block will do the rest of activity else it was not doing anythings.

 

assign appplan = app.meta. ...xx.appplan
{% if appplan === "pro" %}
 here is app logic 
{% else %}
 console.log(" need app plan paid plan ")
{% endif %}

 


this is the sample example to mange the app block's