does customer.attributes work?

Tourist
3 0 1

Hi Everyone,

I'm trying to add more fields to customer registration form to collect custom information from customers when they sign up for an account. I tried like that:

 

<label for="attribute_45">company</label>
<input id="attribute_45" type="text" name="attributes[company]" value="{{ customer.attributes["company"] }}">

 

but doesn't work, any idea?

I  know customer.note is work, but I want to know how to use customer.attributes. Seems no official explanation.

 

Thanks in advance!

 

0 Likes
Shopify Expert
2486 416 523

Hi @sunnysek 

No we have not customer attribute object,  you can use tag for that.

We have just this object for customer

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes