As an App, how can I programmatically inject javascript into the Order Status page ?

GreatTeam
New Member
3 0 0

Hello all,

We are struggling with my team to figure out how could we inject javascript into the Order Status page (https://website.myshopify.com/XXX/orders/XXX)

For now all our JS code is in a snippet, included in the theme.liquid file. But if my understanding is correct, the theme.liquid is not used on this Order Status page.

Our objective is to get access to the liquid object order.attribues, to get the details of the products of the order passed and send them in a POST call to our app.

Any hint? 

Many thanks

0 Likes

Please refer to this answer.

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Using a free theme? Improve it with copy/paste code snippets clicking here.
◦ Looking to hire an experienced developer? Same day response: ezfycode@gmail.com.
0 Likes