Order id is not accessible via JS in thank you page

Highlighted
Shopify Partner
372 44 75
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
If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
Give a try to Shopify APP: https://apps.shopify.com/checkout-reminder
0 Likes
Highlighted
Shopify Partner
1825 211 381

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
Highlighted
Shopify Partner
372 44 75

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

 

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
Give a try to Shopify APP: https://apps.shopify.com/checkout-reminder
0 Likes