Detect Store Order Status Usage

Detect Store Order Status Usage

shopappsllc
Shopify Partner
7 0 1

is there an API route or method we can use to see if the store is using legacy thank you page vs new thank you page?

Replies 4 (4)

Liam
Shopify Staff
2873 312 819

Hi Shopappsllc,

 

One option could be to query checkoutBranding - if the branding API is active on a store, the new thank you page should be active too. 

Liam | Developer Advocate @ 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 Shopify.dev or the Shopify Web Design and Development Blog

shopappsllc
Shopify Partner
7 0 1

Hi,

 

I am trying to implement this but I am getting the following error:

 

:message => Access denied for checkoutProfiles field. Required access: The shop must have access to the checkout editor.

I need to be able to check this for non shopify plus shops, any ideas?

Liam
Shopify Staff
2873 312 819

What is the use-case you're trying to achieve here?

Liam | Developer Advocate @ 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 Shopify.dev or the Shopify Web Design and Development Blog

shopappsllc
Shopify Partner
7 0 1

Hi,

 

Since stores can now either use the legacy or new thank you page I need to know which one they use. My app allows modifying the thank you page and it won’t work unless I know which version they are using.