Adding Script to Thank You page after Order complete through API.

Highlighted
New Member
4 0 0

I want to add js code to the thank you page through API. I can't find any way.Please help me.

0 Likes
Highlighted
Shopify Expert
809 67 190

I'm trying to find a way to do this also.

 

I don't think it's possible :/

Founder of Speed Boostr (Shopify optimization and dev agency).
Creator of Theme Scientist (A/B testing app).
Creator of Order Automator (app that auto tags + fulfills orders, send emails).
Creator of Tip Jar (add a tip button to your store).
Creator of Shopify Analyzer (free performance analysis tool).
My team also builds custom apps and automated solutions.
Enjoy the adventure!
0 Likes
Highlighted

I think you're looking for the ScriptTag API https://help.shopify.com/en/api/reference/online-store/scripttag

 

Make sure to use order_status as the display_scope.

Check out Store Recon on the app store.
1 Like
Highlighted
Shopify Expert
809 67 190

Cool I'll give it a test. Not sure if it will work though because I'm looking to use liquid as well, this seems like it will add a 3rd party script rather than allow the same liquid / JS embed as you can do in the Additional scripts area.

 

Thanks I didn't know about this one 👍

Founder of Speed Boostr (Shopify optimization and dev agency).
Creator of Theme Scientist (A/B testing app).
Creator of Order Automator (app that auto tags + fulfills orders, send emails).
Creator of Tip Jar (add a tip button to your store).
Creator of Shopify Analyzer (free performance analysis tool).
My team also builds custom apps and automated solutions.
Enjoy the adventure!
0 Likes
Highlighted
New Member
4 0 0

can i use this for adding some conditions in checkout as well ? like minimum order purchase or your checkout will destroy in 10 min?

0 Likes
Highlighted
Shopify Partner
4 0 1

Hello, 

 

I'm having the same problem as you. I want to add a JS file in the thank you page, but I need some order variables. 

Did you find any solution to this problem ?  

 

Thanks in advance

1 Like