Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Additional checkout scripts (thank-you page) - Liquid objects

Additional checkout scripts (thank-you page) - Liquid objects

Richard687
Shopify Partner
19 1 16

Hello. I'm looking at the documentation for additional checkout scripts and can't find any definitive information about what Liquid objects are available. The documentation says "you are able to use the `shop` Liquid object, the `order` Liquid object, and the `OrderStatus` JavaScript asset." However, the examples further down the page refer to other top-level objects/variables such as `total_price` and `line_items`, and in our live additional checkout scripts we have other variables such as `subtotal_price`.

 

There is a page with all of the JS variables (at the bottom of this page), but not an equivalent that I can find for what Liquid variables are available.

 

Where can I find a full list of Liquid objects/variables that are available in the additional checkout scripts? Or is it the case that all properties of the order object are available as top-level variables too?

 

Anyone able to help?

 

Many thanks!

Replies 2 (2)

Liam
Community Manager
3108 344 911

Hi Richard,

 

You're correct, `total_price`, `line_items`, and `subtotal_price` are all properties of the `order` object, so you can use any of the order properties (and shop properties).

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Richard687
Shopify Partner
19 1 16

Thanks for getting back to me Liam. Perhaps the documentation could be updated to reflect that all of the "order" object's properties are available as top-level variables (unless I have missed that somewhere)?