The query below allows you to check if Thank you page / Order status page extensions can be used, but not checkout extensions.
query GetCheckoutProfiles {
checkoutProfiles(first: 50) {
nodes {
id
name
typOspPagesActive
isPublished
}
}
}
This can be derived from the shop’s plan with ~90% accuracy, though there are some edge cases. I’m wondering if there’s any way to get an actual boolean value indicating whether a shop supports checkout extensions or not.
Good point, I guess in my logic if I’m in development mode I don’t enforce a Shopify Plus conditional to show the app block is available.
But on the merchant’s end, if Checkout Extensibility is available, they can simply drag and drop your block into their Checkout page.
But agreed, it would be nice if shop.checkoutProfiles had a simple boolean for tracking Checkout Extensibility for these edge cases for Development stores that have it enabled.