{"id":2757,"date":"2019-10-03T15:55:37","date_gmt":"2019-10-03T10:25:37","guid":{"rendered":"https:\/\/magecomp.com\/support\/?post_type=manual_documentation&#038;p=2757"},"modified":"2020-10-21T18:20:24","modified_gmt":"2020-10-21T12:50:24","slug":"creating-new-customer-attribute","status":"publish","type":"manual_documentation","link":"https:\/\/magecomp.com\/support\/docs\/magento-customer-attribute-extension\/creating-new-customer-attribute\/","title":{"rendered":"Creating New Customer Attribute"},"content":{"rendered":"<p>Simply, click on add new attribute option to create your Magento customer attribute.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-9914\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/3_attribute_properties.png\" alt=\"attribute_properties\" width=\"1332\" height=\"408\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/3_attribute_properties.png 1332w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/3_attribute_properties-300x92.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/3_attribute_properties-1024x314.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/3_attribute_properties-768x235.png 768w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/3_attribute_properties-600x184.png 600w\" sizes=\"(max-width: 1332px) 100vw, 1332px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Attribute Code: <\/strong>Set custom attribute code that will be used for internal purpose.<\/p>\n<p><strong>Customer Input Type: <\/strong>Option to choose from different kinds of use input fields text field, text area, date, yes\/no, multiple select and dropdown.<\/p>\n<p><strong>Default Value: <\/strong>From here you can set default value for that field if needed.<\/p>\n<p><strong>Visible on Frontend: <\/strong>Option to show customer attribute on store frontend.<\/p>\n<p><strong>Unique Value: <\/strong>Option capture unique value for that customer attribute.<\/p>\n<p><strong>Values Required: <\/strong>Option to set customer attribute as mandatory field.<\/p>\n<p><strong>Input Validation: <\/strong>You can validate your customer input as Decimal Number, Integer Number, Email, URL and Letters.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-9912\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/4_attribute_frontend_properties.png\" alt=\"attribute_frontend_properties\" width=\"1070\" height=\"270\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/4_attribute_frontend_properties.png 1070w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/4_attribute_frontend_properties-300x76.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/4_attribute_frontend_properties-1024x258.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/4_attribute_frontend_properties-768x194.png 768w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/4_attribute_frontend_properties-600x151.png 600w\" sizes=\"(max-width: 1070px) 100vw, 1070px\" \/><\/p>\n<p><strong>Sort Order: <\/strong>Option to assign sort order for the customer attribute.<\/p>\n<p><strong>Show on the Customer Account Create Page: <\/strong>Option to display customer attribute in frontend store registration.<\/p>\n<p><strong>Show on the Customer Account Edit Page: <\/strong>Option to display customer attribute in frontend customer account section.<\/p>\n<p><strong>Show on the Admin Manage Customer: <\/strong>Option to display customer attribute in backend customer account information.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-9913\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/5_attribute_label_options.png\" alt=\"attribute_label_options\" width=\"1348\" height=\"236\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/5_attribute_label_options.png 1348w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/5_attribute_label_options-300x53.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/5_attribute_label_options-1024x179.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/5_attribute_label_options-768x134.png 768w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/10\/5_attribute_label_options-600x105.png 600w\" sizes=\"(max-width: 1348px) 100vw, 1348px\" \/><\/p>\n<p><strong>Manage Titles: <\/strong>Option to set different customer attribute label for frontend as well as the backend.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2749,"menu_order":3,"template":"","manualdocumentationcategory":[1698],"manual_doc_tag":[],"class_list":["post-2757","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-m1-customer-attribute"],"_links":{"self":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/2757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/2757\/revisions"}],"predecessor-version":[{"id":9915,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/2757\/revisions\/9915"}],"up":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/2749"}],"wp:attachment":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/media?parent=2757"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manualdocumentationcategory?post=2757"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_doc_tag?post=2757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}