Shopify Plus - Checkout.liquid available checkout object information?

Solved
Highlighted
New Member
3 0 1

 

According to the shopify cheat sheet located at https://www.shopify.com/partners/shopify-cheat-sheet

 

The checkout object can be accessed in the order status page of the checkout. Shopify Plus merchants can also access properties of the checkout object in the checkout.liquid layout file.

So which properties of the checkout object are available in the checkout.liquid file and when, I either I skipped over the section where that is explained or it wasn't. 

Could someone enlighten me as to which properties of the checkout object are available? I've read some hacks about making an ajax call to the checkout api to get back the information, but that seems pretty silly given that we are already in the checkout.

 

Cheers

Gary

0 Likes
Highlighted
Shopify Partner
142 23 40

This is an accepted solution.

Hi @garyrgilbert,

You can have a look here: https://shopify.dev/docs/themes/files/checkout-liquid

There's an object that will help you identify each step of the checkout process, and derive from that the properties you can query for each one. 

Panos Voulgaris
Creative director / Partner @ MALVI
Founder @ function( )
0 Likes
Highlighted
New Member
3 0 1

 

Hi Panos,

 

Oh so I did read it correctly, looks like I will have to query the checkout api for anything truly useful. Since the entire checkout process is handled via the api and javascript by shopify anyway, if i want the information I guess I have to query the api for the current data.

Thanks anyway,

 

Cheers,

 

Gary

Highlighted
Shopify Partner
142 23 40

Yes, it kind of depends on the type of data you need for your scope. Some of the data are pretty straightforward to get, if you need anything more complicated to calculate, then you'd be better off using the Checkout API.

Panos Voulgaris
Creative director / Partner @ MALVI
Founder @ function( )
0 Likes