Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Checkout extensions does not load for draft orders

Solved

Checkout extensions does not load for draft orders

raj_asha
Shopify Partner
14 0 5

Hi,
I have created checkout extensions for checkout and thank you pages and it works fine when I add items to the cart and go through checkout. But when I create a draft order and visit the checkout link, I noticed that the extensions do not get displayed on any of the checkout pages or the thank you page.

I also noticed that the checkout extension code is not executed at all when visiting checkout for draft orders.

Is this expected behavior or something needs to be done from my end to make the extensions work for draft orders as well?

Thanks.

Accepted Solution (1)

Liam
Community Manager
3108 344 899

This is an accepted solution.

Hi Raj_asha,

 

Checkout UI extensions are not yet available for draft orders / invoice orders but we are working on supporting these later this year. 

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

View solution in original post

Replies 22 (22)

Liam
Community Manager
3108 344 899

This is an accepted solution.

Hi Raj_asha,

 

Checkout UI extensions are not yet available for draft orders / invoice orders but we are working on supporting these later this year. 

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

onescales
Shopify Partner
105 3 17

also in need of this. anywhere we can stay updated on this?

OneScales.com Teaches Shopify and Solves Ecommerce Problems for Free. See our Youtube Channel for Tutorials - https://www.youtube.com/@onescales
We Also Share Insight about E-commerce, Web, Tech, AI, Analytics, SEO, PPC, Marketing and More.
Liam
Community Manager
3108 344 899

You can keep an eye on our changelog to find out when this will be supported: https://shopify.dev/changelog

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

yesyo
Shopify Partner
15 1 3

Hi Liam,

 

Any updates on this? It's already May and the August deadline is approaching soon.

 

Thanks.

shani_boaideas
Shopify Partner
1 0 0

Hey Liam,

 

any update on this?

tomchan
Shopify Partner
17 0 9

If Shopify can't gurantee Checkout UI extension fully compatible at least 1 month before August, how dare Shopify depreacte Checkout.liquid before everything is working fine? Checkout.liquid is a plus feature and I feel that Plus merchant, despite paying a good amount, are nothing in the eyes of Shopify.

GK-Luke
Shopify Partner
3 0 0

Any updates on this? 

Is this looking likely prior to the August deadline?

tomchan
Shopify Partner
17 0 9

still don't see nothing relavant in changelog. are we missing something? Is Shopfiy really going to hang merchants out to dry in August?

yesyo
Shopify Partner
15 1 3

I noticed an item on the product roadmap back in May, which was initially scheduled for June 2024. It has now been postponed to July. I hope it will be completed on time.

 

yesyo_0-1717639758754.png

tomchan
Shopify Partner
17 0 9

This is really bad experience. Even if they can roll out in July, we got only one month or even less to test on it. Plus, from the past experience I doubt that they deliver things on time.

yesyo
Shopify Partner
15 1 3

Can't agree with you more.  😥

onescales
Shopify Partner
105 3 17

let's hope for the best. thanks for the mention. this helps a lot

OneScales.com Teaches Shopify and Solves Ecommerce Problems for Free. See our Youtube Channel for Tutorials - https://www.youtube.com/@onescales
We Also Share Insight about E-commerce, Web, Tech, AI, Analytics, SEO, PPC, Marketing and More.
tomchan
Shopify Partner
17 0 9

Hi @Liam it is already mid-July, any update on this?

carolin1
Shopify Partner
2 0 0
yesyo
Shopify Partner
15 1 3

Could someone please confirm if the 2024-07 update has been shipped? I’ve checked our store’s checkout page, and it appears that checkout extensibility is still not functioning for draft orders. Additionally, the feature is not labeled as shipped in the product roadmap either."

onescales
Shopify Partner
105 3 17

doesnt work for me either. documentation says july 19th but that passed and i don't see it. my hope is they should release this week. closely monitoring

OneScales.com Teaches Shopify and Solves Ecommerce Problems for Free. See our Youtube Channel for Tutorials - https://www.youtube.com/@onescales
We Also Share Insight about E-commerce, Web, Tech, AI, Analytics, SEO, PPC, Marketing and More.
yesyo
Shopify Partner
15 1 3

Today, after upgrading to API 2024-07 (as specified in the 2024-07 update) and checking the required cart instructions, I noticed that the UI components are now appearing on the draft order checkout page. However, I have encountered two issues:

 

  1. I am unable to query the Storefront API. The API returns a 403 error with the message "Channel not found for the given token." The same API call works fine for regular orders.
  2. The "instructions.attributes.canUpdateAttributes" always returns false. I am unsure if this is by design. If it is, then in our case, it essentially means we have to abandon checkout extensibility and move our customization functions to the cart page. I will contact Shopify customer service to see if they can provide more details.
yesyo
Shopify Partner
15 1 3

Shopify customer service has responded with the following information:

 

  1. They have confirmed that this is a bug and are writing  a PR to fix it.
  2. canUpdateAttributes will keep returning false for draft orders for the foreseeable future. The reason for this is that draft orders don't support all checkout features at the moment but are under active development.

onescales
Shopify Partner
105 3 17

It finally works.

 

verified on store and also in documentation - https://changelog.shopify.com/posts/plus-merchants-can-now-use-apps-built-with-compatible-ui-extensi...

OneScales.com Teaches Shopify and Solves Ecommerce Problems for Free. See our Youtube Channel for Tutorials - https://www.youtube.com/@onescales
We Also Share Insight about E-commerce, Web, Tech, AI, Analytics, SEO, PPC, Marketing and More.
yesyo
Shopify Partner
15 1 3

Hi @onescales 

 

Were you able to update the attributes, metafields or note of a draft order using Checkout Extension?

onescales
Shopify Partner
105 3 17

i didnt try. my draft order now allows to add blocks and content to any place on the page.

OneScales.com Teaches Shopify and Solves Ecommerce Problems for Free. See our Youtube Channel for Tutorials - https://www.youtube.com/@onescales
We Also Share Insight about E-commerce, Web, Tech, AI, Analytics, SEO, PPC, Marketing and More.
yesyo
Shopify Partner
15 1 3

Understood, thank you.