{"id":18447,"date":"2019-01-22T13:33:01","date_gmt":"2019-01-22T11:33:01","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=18447"},"modified":"2025-02-11T08:24:13","modified_gmt":"2025-02-11T06:24:13","slug":"how-to-add-custom-attribute-to-customer-grid-in-magento-2","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html","title":{"rendered":"How to Add Custom Attribute To Customer Grid in Magento 2"},"content":{"rendered":"\n<p>When a new customer registers at your Magento 2 online shop, he is required to fill in certain fields, such as first name, last name, email. He or she may want to provide some additional information. For that purpose, we need to create our own fields which will be used in a registration form. If you have Magento 2 Commerce version, new fields can be created by adding new customer attributes in the backoffice.<\/p>\n<p><!--more--><\/p>\n<p>I will look into the following aspects:<\/p>\n<p><a href=\"#step_1\">Add new customer attribute in Magento 2 Commerce<br>\n<\/a><a href=\"#step_2\">Appearance in Customer Grid<br>\n<\/a><a href=\"#step_3\">Manage Labels\/Options<br>\n<\/a><a href=\"#step_4\">Customer Address Attribute<\/a><\/p>\n<h2 id=\"step_1\">Add new customer attribute in Magento 2 Commerce<\/h2>\n<p>In the backoffice menu click <strong>Stores<\/strong>&nbsp;and choose <strong>Customer<\/strong> under <strong>Attributes<\/strong>&nbsp;subcategory.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-10-18-52-36.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18448\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-10-18-52-36.png\" alt=\"Add new atribute Magento 2\" width=\"611\" height=\"511\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>You&rsquo;ll see a list of customer attributes. Perhaps the attribute you want to create already exists, but is currently disabled. So all you need to do is to switch it on.<\/p>\n<p>If you haven&rsquo;t found the attribute you need, click the <strong>Add new attribute<\/strong> button.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-10-18-57-00.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18449\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-10-18-57-00.png\" alt=\"Add new attribute button Magento 2\" width=\"816\" height=\"288\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>Let&rsquo;s suppose we have an online shop selling travelling equipment and we need to create a field asking if a customer ready to travel.<\/p>\n<p>Enter the name of the field in <strong>Default Label<\/strong> and an <strong>Attribute code<\/strong> that must be unique.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/attribute-properties-ready-for-travel.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18450\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/attribute-properties-ready-for-travel.png\" alt=\"attribute properties ready for magento 2\" width=\"805\" height=\"188\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>Then, choose from different types of input:<\/p>\n<ul>\n<li>Text Field,<\/li>\n<li>Text Area,<\/li>\n<li>Multiple Line,<\/li>\n<li>Date,<\/li>\n<li>Dropdown,<\/li>\n<li>Multiple Select,<\/li>\n<li>Yes\/No,<\/li>\n<li>File (attachment),<\/li>\n<li>Image File.<\/li>\n<\/ul>\n<p>I will choose <strong>Yes\/No<\/strong> input type.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-10-19-02-37.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18451\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-10-19-02-37.png\" alt=\"Input type Magento 2\" width=\"373\" height=\"70\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>You will need to complete other settings as well:<\/p>\n<ul>\n<li>Values Required;<\/li>\n<li>Default Value;<\/li>\n<li>Input Validation. You can choose whether the field must be validated (if not &ndash; leave &ldquo;None&rdquo;), and if yes &ndash; then by which parameter: Alphanumeric (should contain letters, numbers, punctuation marks), Numeric Only, Alpha Only (only letters), URL,&nbsp;Email, Length Only;<\/li>\n<li>Input\/Output Filter: None, Strip HTML tags, Escape HTML entities (e.g. &lt; will be replaced with &amp;lt; and so on).<\/li>\n<\/ul>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-10-19-45-20.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18452\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-10-19-45-20.png\" alt=\"Values required Magento 2\" width=\"549\" height=\"251\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>In our case the field won&rsquo;t contain any input text, that&rsquo;s why we don&rsquo;t fill in both <strong>Input Validation<\/strong> and <strong>Input\/Output Filter<\/strong>.<\/p>\n<p><strong>Storefront properties<\/strong> block of settings is necessary to fill in, if your attribute will become a field in forms for your customers on the site. If yes, you can choose the forms where it must appear. You should also set up the position of the field in the form (I set it at 5).<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-14-16-10-12.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18453\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-14-16-10-12.png\" alt=\"Storefront properties Magento 2\" width=\"458\" height=\"371\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>So let&rsquo;s check out what we get after adding our attribute. Save it and open registration form.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/create-new-customer-account-magento-2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18455\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/create-new-customer-account-magento-2.png\" alt=\"create new customer account magento 2\" width=\"762\" height=\"566\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>Here&rsquo;s our field, it&rsquo;s 5th in the list. It looks the way we wanted to, with &ldquo;yes\/no&rdquo; dropdown.<\/p>\n<h2 id=\"step_2\">Appearance in Customer Grid<\/h2>\n<p>There&rsquo;s another block of settings concerning customer grid.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-14-17-02-45.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18457\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-14-17-02-45.png\" alt=\"Appearance in Customer Grid Magento 2\" width=\"724\" height=\"266\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>Let&rsquo;s go to attribute settings, enable <strong>Add to Column Options<\/strong> and save.<\/p>\n<p>Go to <strong>Customers<\/strong> -&gt; <strong>All Customers<\/strong>, and you will see the <strong>Customer Grid<\/strong>, an indexed version of it. To see the changes we made, update the index first. In console use command <em>bin\/magento indexer:reindex customer_grid<\/em>.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/store.belvg.com\/apply-to-attribute-option.html\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/22apply_to_22_attribute_option.png\" width=\"450\" height=\"450\" alt=\"_22apply_to_22_attribute_option\" class=\"module_image\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><div class=\"module_content_part\"><h3 class=\"title\">\"Apply To\" Attribute Option for Magento 2<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG module<\/p><a href=\"https:\/\/store.belvg.com\/apply-to-attribute-option.html\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Download here<\/span><\/a><\/div><\/div><\/div>\n<p>After rebuilding the index you&rsquo;d expect to see the new customer attribute in the columns, but it&rsquo;s still not there.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-14-17-34-25.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18458\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-14-17-34-25.png\" alt=\"Customers Magento 2\" width=\"1696\" height=\"337\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>In the <strong>Customer Grid<\/strong> you can add a column from existing attributes. Press <strong>Columns<\/strong> button and tick our new attribute &ldquo;<strong>Ready for travel?<\/strong>&rdquo;.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-14-17-35-08.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18459\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-14-17-35-08.png\" alt=\"New attribute magento 2\" width=\"669\" height=\"482\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Afterward you&rsquo;ll be able to see the new attribute as a column.<\/p>\n<h2 id=\"step_3\">Manage Labels\/Options<\/h2>\n<p>You can create a label name in different languages and set up its reflection depending on the country of each customer. Go to Manage <strong>Label \/ Options<\/strong> tab.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Attribute-information-magento-2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-18460\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Attribute-information-magento-2.png\" alt=\"Attribute information magento 2\" width=\"768\" height=\"209\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><\/a><\/p>\n<h2 id=\"step_4\">Customer Address Attribute<\/h2>\n<p>Bear in mind that if you wish to add an attribute concerning customer&rsquo;s address, you should create a<strong> Customer Address Attribute<\/strong>. In backoffice menu click <strong>Stores<\/strong> and choose <strong>Customer Address<\/strong> under <strong>Attributes<\/strong> heading. From then on the mechanism of working with an attribute in the same as has been already described above.<\/p>\n<h2>FAQ<\/h2>\n<p>Question: Can&rsquo;t export csv and xml with a custom attribute<\/p>\n<p>Answer: Magento 2 export creates a file only with those columns that are visible in customer grid. So add the column to the customer grid as it was described in this article.<\/p>\n<p>Diversify your customer management with BelVG&rsquo;s&nbsp;<a href=\"https:\/\/store.belvg.com\/customer-attributes.html\" target=\"_blank\" rel=\"noopener\">Customer Attributes<\/a> module for Magento.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/magento-custom-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/magento-custom-development.png\" width=\"120\" height=\"120\" alt=\"magento custom development\" class=\"module_image\" title=\"How to Add Custom Attribute To Customer Grid in Magento 2\"><div class=\"module_content_part\"><h3 class=\"title\">Magento Custom Development<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento Custom Development <\/p><a href=\"https:\/\/belvg.com\/magento-custom-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"When a new customer registers at your Magento 2 online shop, he is required to &#8230;","protected":false},"author":107,"featured_media":18466,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,491,469,473,524],"tags":[],"class_list":["post-18447","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-magento","category-magento-2","category-magento2-tutorial","category-magento-front-end-developer","category-magento-speed-optimization","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn how to add custom attribute to customer grid in Magento 2. Discover how to manage labels &amp; options in Magento.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Raman Kapanets\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#article\",\"name\":\"Add Custom Attribute to Customer Grid in Magento 2 | BelVG Blog\",\"headline\":\"How to Add Custom Attribute To Customer Grid in Magento 2\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/raman-kapanets#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Artboard-1-5.png\",\"width\":1108,\"height\":590,\"caption\":\"Magento 2 Custom Attribute to Customer Grid\"},\"datePublished\":\"2019-01-22T13:33:01+02:00\",\"dateModified\":\"2025-02-11T08:24:13+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#webpage\"},\"articleSection\":\"Magento, Magento 2, Magento 2 Tutorial, Magento Front End Developer, Magento Speed Optimization, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"position\":2,\"name\":\"Magento\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#listItem\",\"name\":\"How to Add Custom Attribute To Customer Grid in Magento 2\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#listItem\",\"position\":3,\"name\":\"How to Add Custom Attribute To Customer Grid in Magento 2\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/raman-kapanets#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/raman-kapanets\",\"name\":\"Raman Kapanets\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/27dcb3ea918f9a57caef39c9ec2abb5bdf3105cac0e0632e5d2872f79acebfa7?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Raman Kapanets\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html\",\"name\":\"Add Custom Attribute to Customer Grid in Magento 2 | BelVG Blog\",\"description\":\"Learn how to add custom attribute to customer grid in Magento 2. Discover how to manage labels & options in Magento.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/raman-kapanets#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/raman-kapanets#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Artboard-1-5.png\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html\\\/#mainImage\",\"width\":1108,\"height\":590,\"caption\":\"Magento 2 Custom Attribute to Customer Grid\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#mainImage\"},\"datePublished\":\"2019-01-22T13:33:01+02:00\",\"dateModified\":\"2025-02-11T08:24:13+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Add Custom Attribute to Customer Grid in Magento 2 | BelVG Blog","description":"Learn how to add custom attribute to customer grid in Magento 2. Discover how to manage labels & options in Magento.","canonical_url":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#article","name":"Add Custom Attribute to Customer Grid in Magento 2 | BelVG Blog","headline":"How to Add Custom Attribute To Customer Grid in Magento 2","author":{"@id":"https:\/\/belvg.com\/blog\/author\/raman-kapanets#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Artboard-1-5.png","width":1108,"height":590,"caption":"Magento 2 Custom Attribute to Customer Grid"},"datePublished":"2019-01-22T13:33:01+02:00","dateModified":"2025-02-11T08:24:13+02:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#webpage"},"articleSection":"Magento, Magento 2, Magento 2 Tutorial, Magento Front End Developer, Magento Speed Optimization, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","position":2,"name":"Magento","item":"https:\/\/belvg.com\/blog\/category\/magento","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#listItem","name":"How to Add Custom Attribute To Customer Grid in Magento 2"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#listItem","position":3,"name":"How to Add Custom Attribute To Customer Grid in Magento 2","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/raman-kapanets#author","url":"https:\/\/belvg.com\/blog\/author\/raman-kapanets","name":"Raman Kapanets","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/27dcb3ea918f9a57caef39c9ec2abb5bdf3105cac0e0632e5d2872f79acebfa7?s=96&d=mm&r=g","width":96,"height":96,"caption":"Raman Kapanets"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html","name":"Add Custom Attribute to Customer Grid in Magento 2 | BelVG Blog","description":"Learn how to add custom attribute to customer grid in Magento 2. Discover how to manage labels & options in Magento.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/raman-kapanets#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/raman-kapanets#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/Artboard-1-5.png","@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html\/#mainImage","width":1108,"height":590,"caption":"Magento 2 Custom Attribute to Customer Grid"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html#mainImage"},"datePublished":"2019-01-22T13:33:01+02:00","dateModified":"2025-02-11T08:24:13+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"18447","title":"Add Custom Attribute to Customer Grid in Magento 2 | #site_title","description":"Learn how to add custom attribute to customer grid in Magento 2. Discover how to manage labels &amp; options in Magento.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:36:55","updated":"2026-11-03 18:36:55"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento\" title=\"Magento\">Magento<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Add Custom Attribute To Customer Grid in Magento 2\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento","link":"https:\/\/belvg.com\/blog\/category\/magento"},{"label":"How to Add Custom Attribute To Customer Grid in Magento 2","link":"https:\/\/belvg.com\/blog\/how-to-add-custom-attribute-to-customer-grid-in-magento-2.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/18447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/107"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=18447"}],"version-history":[{"count":0,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/18447\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/18466"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=18447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=18447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=18447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}