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 Answer 1

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 Commented Jun 4, 2015 at 11:15

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.