how to access to the customer.note with Liquid

Tamara_Lover
Shopify Partner
2 0 0

Hi Everyone

I'm trying to get this information from the user site, without any success, I tried with {{ customer.note }} but doesn't work, any idea?

Thanks in advance!

 

 

0 Likes
standoutd
Navigator
1135 0 128

Hi, Tamara. You are on the right track - if it existed! :-)

I took a look here and did not see the customer note listed:

http://docs.shopify.com/themes/liquid-variables/customer

My guess is that it is not (yet) exposed via Liquid, just in the Admin area. You might want to email support to request/confirm.

I don't know the reason why you want to access this via liquid, however MetaFields might work for you. Those you can access easily from anywhere you have a customer object.

 

http://www.StandoutDesigns.com ::: Solid Wood TV Furniture for Enthusiasts. Made in USA.
0 Likes
HunkyBill
Shopify Expert
4509 46 492

Customer notes are not for use on the store itself. They are for the merchant to use in organizing the customer's orders etc. If you want customer info on the front-end store, use metafields. 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
Tamara_Lover
Shopify Partner
2 0 0

Thanks for your answers,

I was checking Metafields and seems can be works, but I need create them from a customer register from, since I need store additonal information about customers when they is sign up, I'm trying something like this

        <input type="hidden" name="customer[metafields][namespace][key]" value="respuesta1" />

        <input type="hidden" name="customer[metafields][namespace][value]" value="pregunta1" />

But doesn't work,

Please any idea how I can do that!

 

 

0 Likes
MarinaP
Tourist
7 0 2

I know this is an old post, but if someone still has troubles with this, here is how I've solved it:

<input type="text" value="" name="customer[note][vat]" id="vat" class="register-form__input-fields text-7" placeholder="VAT Number" size="30" />
0 Likes
whistlerbrad
New Member
2 0 1

Marina,
Are you able to display that customer note information in Liquid? 

0 Likes
MarinaP
Tourist
7 0 2

I'm struggling with that part. Officially there is no way to access this via liquid, but I suppose that there is some way. I'll write here when I solve this.  

whistlerbrad
New Member
2 0 1

Thanks. Yeah, I was hoping there's an undocumented method to access that in the customer object. Fingers crossed we find a way.