Shopify Plus - Checkout.liquid available checkout object information?

Solved
garyrgilbert
Excursionist
40 3 10

 

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
pvoulg
Shopify Partner
172 26 49

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
garyrgilbert
Excursionist
40 3 10

 

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

pvoulg
Shopify Partner
172 26 49

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
adearriba
Tourist
6 0 4

Hello, I just wanted to add that, if you have access to the checkout.liquid file, I am creating a JS library to modify the checkout page with ease. I already have a couple of functionality working that might help you. More is coming soon.

It is free to use: https://github.com/adearriba/ShopifyCheckoutJS