Is there a way to tell what plan the merchant is OR if they have B2B feature enabled, so I can hide certain frontend elements?
Yes, you can view the merchant’s Shopify Plan through the shop.plan
attribute in the GraphQL API:
I’m not so sure about checking the B2B feature status, but the CheckoutProfiles
attribute can be used to check if they have Checkout/Customer Extensibility enabled as well.
1 Like
Shame you can’t get it here really:
Are you building a headless Shopify storefront? Or publishing a B2B app that also leverages the new Customer Accounts API?
Just curious, because if it’s the latter, you can potentially proxy an Admin GraphQL request from your frontend to retrieve the current store’s Shopify Plan to hide/show functionality.