checkout customer note null in checkout.liquid

Solved
garyrgilbert
Excursionist
22 1 3

Hi all,

 

in checkout.liquid according to the documentation I should have access to a customers information via "checkout.customer" in fact I do have access to the customers information but not all information available that you can see via "/admin/checkouts/{checkout_id}.json" which is what I would expect.

What I want access to is "checkout.customer.note" trying to access it keeps returning an empty string although I know that it isn't.. other keys in the data return their expected results.. e.g. "tags" 

Anyone @ shopify know why that is? Was ist perhaps overlooked?

 

Cheers and thanks,

 

Gary

0 Likes
florinanghel
Shopify Partner
102 15 17

This is an accepted solution.

It looks like note is just not included in the liquid customer object https://shopify.dev/docs/themes/liquid/reference/objects/customer anywhere you would try to get that via liquid.

0 Likes
garyrgilbert
Excursionist
22 1 3

Thanks florian,

 

I didnt' think to check that Reference, I am so used to using the API that I just assumed that there must be a problem if it wasn't there.. that also explains why I don't get other information that I expect to be there.. going to have to re-think how I do a few things to account for this.

I bookmarked it so I don't forget before asking another silly question.

 

Cheers,

Gary

0 Likes