0

I added some attribute for customer entity. This causes some error on checkout page. That I described in other question.

Getting validation error on checkout billing tab for custom attribute

How can I make those attributes as not required field or delete those attributes?

1

You will need to update the database directly as there is no GUI for customer attributes. Remember to back-up your database before running this.

DELETE FROM `eav_attribute` WHERE attribute_code LIKE 'yourattributecodehere';

Or if you just want to make it optional (not required):

UPDATE `eav_attribute` SET is_required = 0 WHERE attribute_code LIKE 'yourattributecodehere';

Also you might have a table prefix, so in this case, it would be yourprefix_eav_attribute

1
  • Just to be safe, always run a select with the same where clause before deleting something, this way you can check the affected rows before deleting. And if you want to go extra safe after running the select take note of the id and delete using id instead than attribute code
    – lloiacono
    Jun 4 '15 at 11:15

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.