I created a customer attribute with Text field as an Input Type . I selected the Show on Frontend on Yes . I went to the register phtml file and I added:

<input type="checkbox" name="my_attribute_code" checked title="Custom Text" id="my_attribute_code" >

If I checked my checkbox in the post request I got the value on If I do not check it , it is an empty array. The fact is that in customer_entity_varchar table for my attribute the value column is always empty . Why ? If i checked my checkbox I would expect to have the on value in the table.

  • Have you done it yet? – Thanh TN Aug 24 '18 at 8:37
  • Did you solved ?of yes then please let us know – sumeet bajaj May 21 '19 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.