I have successfully created ScriptTag with order_status scope via rest API.
The problem is that script tag is loaded only on page that is visible through admin link on “View Order Status Page” in Shopify order administration, NOT when customer complete checkout and gets redirected on “Order Status” page.
I have tried the same with “Additional scripts” in Checkout Settings, but I get the same result.
Are there some conditions when script tags are loaded on “Order Status” page? Why script is not loaded on “Order Status” page after checkout?
But the order confirmation page (last page) in front Store didn’t load the script-tags. The ORDER_STATUS of displayScope only works on the admin page. How can I inject script-tags on thank-you?
Currently in my case script tags are loaded when I access “the order confirmation page (last page)” through admin link, or through button in order confirmation email.
Script is not loaded on “the order confirmation page (last page)” after checkout is completed.
you can try setting the display_scope attribute of the script tag to all (“display_scope”: “all”) then detect and run the code on front store order confirmation page with javascript.
I got it work. It is work fine that the scrip tag load when I test my app in dev stores which is Global Nav dev store. But it is not work anymore when I test my app in dev stores which is checkout extensibility developer preview.