Created
November 3, 2017 15:29
-
-
Save joostvanveen/35dda35a79d6be4f562fb2662816fb30 to your computer and use it in GitHub Desktop.
Set firstname, lastname, email, telephone as unrequired for Magento 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- DEFAULT MAGENTO: REQUIRE FIRSTNAME, LASTNAME, EMAIL, TELEPHONE | |
UPDATE `ma2_eav_attribute` SET is_required = 1 WHERE attribute_code = 'firstname'; | |
UPDATE `ma2_eav_attribute` SET is_required = 1 WHERE attribute_code = 'lastname'; | |
UPDATE `ma2_eav_attribute` SET is_required = 1 WHERE attribute_code = 'email'; | |
UPDATE `ma2_eav_attribute` SET is_required = 1 WHERE attribute_code = 'telephone'; | |
-- DO NOT REQUIRE FIRSTNAME, LASTNAME, EMAIL, TELEPHONE | |
UPDATE `ma2_eav_attribute` SET is_required = 0 WHERE attribute_code = 'firstname'; | |
UPDATE `ma2_eav_attribute` SET is_required = 0 WHERE attribute_code = 'lastname'; | |
UPDATE `ma2_eav_attribute` SET is_required = 0 WHERE attribute_code = 'email'; | |
UPDATE `ma2_eav_attribute` SET is_required = 0 WHERE attribute_code = 'telephone'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment