New Shopify Certification now available: Liquid Storefronts for Theme Developers

How to check if a shop supports functions?

Solved
SatelQuinn
Shopify Partner
7 1 2

Is there some way to access a feature flag that indicates if a Shop supports functions or not? I have checked the following in GQL:
- shop.features

- shop.supportsCheckoutApi

- createAppDiscountCode (different error or something)

 

This would be very helpful to make sure when functions arrive we can roll them out only to the correct stores (just dev preview stores atm).

More generally it would be helpful to surface if a store is dev-preview on `shop` or something.

Accepted Solution (1)
Nick_Wesselman
Shopify Staff
Shopify Staff
94 25 37

This is an accepted solution.

Hi @SatelQuinn -- Theoretically this shouldn't be necessary. Once functions go GA, they will be available to all shops.

Nick Wesselman | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 2 (2)
Nick_Wesselman
Shopify Staff
Shopify Staff
94 25 37

This is an accepted solution.

Hi @SatelQuinn -- Theoretically this shouldn't be necessary. Once functions go GA, they will be available to all shops.

Nick Wesselman | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

SatelQuinn
Shopify Partner
7 1 2

Thanks for the quick reply @Nick_Wesselman! For some reason I remembered reading somewhere that they would roll out to plus shops first. Couldn't dig that up though.