Development discussions around Shopify APIs
So the new theme app extensions are available to a theme when an app is installed, ok great.
How does this work with subscriptions? A store can install an app without subscribing, giving them access to the extensions without paying.
How do we limit access to theme app extensions until a store subscribes? Are all theme app subscriptions only for free apps?
Hi @mattdenoronha, it's correct that merchants would be able to add the theme app extension, but you still control what happens inside it and would have total control of when to enable/disable the feature provided by the extension based on your own business rules.
So would that be, every view of the section would require a call to our servers to check if we've marked that store as subscribed, then render the section if they've paid? Seems quite extensive and likely to slow the page just to display what may be a simple section with some text and images.
I can't think of a less intensive way.
Does anyone have an idea on this? Is there a way to limit theme app extensions to only subscribed stores? One that doesn't require a server call on every page view? Will standard theme app extensions only be for free apps?
Not necessarily, there are techniques to mitigate calling the backend on each view, like session caching, or I believe you can use liquid in theme app ex, so you could also use metafields. The World is your oyster.
Hi , what if we want to hide the app blocks provided by theme app extension for the app if any user clicks on unsubscribe is it not possible.
Bumping this. If a merchant installs the app and clicks cancel on the subscription approval page, they can still insert the app block into their theme without issue and there does not appear to be anything in the Shopify docs on how to handle this scenario with regards to Theme App Extensions and showing them in theme sections.
I'm not sure how to go about checking subscription status in the app block liquid. Even then, they would still be able to add the block and devs would be responsible for showing a non-standardized subscription status message in the rendered app block.
Is there an example of handling this for Theme App Extensions in the Shopify docs or a Github repo?
If we need to manually maintain an external source of the merchant's subscription status for Theme App Extensions it adds a significant amount of overhead to handle something Shopify already has APIs to accommodate.
Are there hooks we can use for showing the app block in the Theme Editor?
Bumping this again.
I've spent some more time looking around in the docs and seeing what's available to solve this issue, but am not coming across anything useful.
Being able to toggle the availability of the Theme App Extension based on whether or not the merchant is up-to-date on their payments for the app seems like an important feature for Theme App Extensions.
Is something like this available?
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...By Jacqui Mar 10, 2023
Upskill and stand out with the new Shopify Foundations Certification programBy SarahF_Shopify Mar 6, 2023
One of the key components to running a successful online business is having clear and co...By Ollie Mar 6, 2023