FROM CACHE - en_header

checkout customer note null in checkout.liquid

Solved
garyrgilbert
Shopify Partner
84 8 27

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

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Accepted Solution (1)

Accepted Solutions
florinanghel
Shopify Partner
136 17 30

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.

View solution in original post

Replies 2 (2)
florinanghel
Shopify Partner
136 17 30

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.

garyrgilbert
Shopify Partner
84 8 27

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

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution