Order id is not accessible via JS in thank you page

Shopify Partner
157 3 13
Hi,
I have Shopify APP and added scripttag in it. I'm passing order id from Thank you page to APP via js.
However in some Shopify store order id(Shopify.checkout. order_id) is not accessible via js and in some store its working fine.
Can anyone please help me to fix?! As per my understanding issue is from Shopify as its not working on some stores.
Note: They didn't used any custom checkout, its default by Shopify.

Thank you
0 Likes
Shopify Partner
839 82 123

It might happen for custom checkout flows. Can you spot the differences between orders that have the id attached and ones that do not have?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
Shopify Partner
157 3 13

Hi @Visely-Team 
Thank you for your reply!
I already checked and there isn't custom checkout flow. 
One of the issue is may be 

[landing_site] => /wallets/checkouts.json

is always same, how is that possible? I think this is when customer checkout using directly "Buy Now" button.
Is there any way to get correct landing_site even if used "Buy Now" button?

Thank you

 

0 Likes