Skip to content

Magento : Stupid way to disable required field from eav table

just discover how to did this

for example you want disable required on postcode / zipcode field on frontend, first go to phpmyadmin, run this sql to check the attribute/field is exist

SELECT * FROM `eav_attributeWHERE `attribute_code` = ‘postcode’

then, this step to disable ‘required’ field

update `eav_attribute` set is_required = 0 WHERE `attribute_code` = ‘postcode’

and one thing, don’t forget to remove ‘requred-entry’ class on the field

i know this is stupid ..hahah..but this is better than kill yourself..haha


Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *