Order status JavaScript asset
You can add custom content to your order status page with the Shopify.Checkout.OrderStatus
order status JavaScript asset, such as the following examples:
- notes on specific products
- instructions for individual shipping methods
- download links for digital products
To add this Javascript asset from your Shopify admin, go to Settings > Checkout. Scroll down to the Order status page section, and then add the Javascript asset into the Additional scripts box.
This JavaScript asset can also be accessed through ScriptTag.
How it works
Shopify.Checkout.OrderStatus
contains a function for generating new content:
This function adds a content box where each parameter passed into the function is rendered as a separate row.
HTML5 is supported inside the function and you can use liquid outside of the function.
Example
You can add content when a particular shipping method has been used. This code adds the store's operating hours to the order status page when a customer choose the pick-up in store shipping method.