Tuesday, February 7, 2012

Magento making company field required

Question : when registering a new client, I want to make the field "company" required.
Which file should I edit?

Answer: You should as well add it in your attribute on the server side. If you're using Magento entreprise edition, you can simply edit the company attribute through back end, and set it to "required". If you're working with a community edition, you'll have to manually change this value with SQL. It's in eav_attribute table, the attribute_code is "company" and you just as to set "is_required" to 1.

No comments:

Post a Comment