wondering if there’s a way to hide this from certain merchants to prevent them from seeing it as an option to add in checkout
Added checkout-ui-extensio and removed theme-app-extension
Hi @arvin!
Currently this is not possible to limit the merchants that can see specific app blocks in the checkout editor. Can you describe why you’re looking to hide certain app blocks from certain merchants?
But it’s a great suggestion that we’ll log internally. Thanks!
hey @Gil-Shopify thanks for the speedy reply.
the feature I’m building requires some manual setup as we’re releasing it as a beta for a few merchants at the moment. we’d like to also slowly roll it out to merchants and have it as a paid feature gated by configurations setup in our app.
Yeah, payment-gated features are set up among many apps, having built-in functionality supporting them makes sense.
One workaround I can think of for now is to tag the merchant like a feature flag and conditionally render the content.
I know there are limitations to the size of blocks and it may not be feasible but if it would work it could be a quick workaround for you for the time being. Then you would remove the condition when proper functionality is available.
Could this not be a prime use for an app proxy?
My thoughts… would be to proxy customer data from the extension and determine which customer to render the extension for – assuming they are logged in – or can be identified by email address.
Well the issue is that they do not want to display the option to use specific app blocks in the checkout editor to merchants.
That to me currently would involve some sort of feature flag where they conditionally render the content within the app block, say something like This feature is not available right now.
instead of what the actual content would be if the merchant should not have access to it.
Ideally it just would not be shown as an option to choose from in their case but as that sounds like it is not doable at the moment I figured a temporary workaround would be the conditionally rendered content.
Another thought now is probably just using a separate app for those specific merchants but I can see that not being ideal as well.
Totally agree that a conditional rendering of the extension is the only option available.
I think the real trick is identifying the customer on which to render the extension. Using the app proxy means that you can use the Shopify Admin API and make the choice more granular.