I have a set of Shopify extensions. I want to not include one of them for certain stores when I deploy.
Is there a way to do this?
I have a set of Shopify extensions. I want to not include one of them for certain stores when I deploy.
Is there a way to do this?
This is not possible directly. Some extensions have a ShouldRender API, and App theme extensions can be conditional.
I hope that helps!
Another alternative is to set up a feature flag on the merchant’s accounts in your own database.
That way you can selectively release an extension, and collect interest through a quick sign up form for those that have tried adding the extension but aren’t part of your beta.
Does the value for available_if
have to come from a metafield on the App Installation object? Or can it be a metafield on any resource?
E.g. could we do "available_if": "{{ shop.metafields['$app:ribbon'].ribbonEnabled }}"
Or is there a way to access metafields on shop
from app
in a liquid template?
Thanks!
Has to be on the app installation I believe @dantheado