Many times we have the requirement to add a custom / new column to the customer grid. So in this blog, We will help you to achieve your requirement. We are going to learn How to add a new column in the customer grid in Magento 2. I believe that you all know very well how to create a simple module, therefore we will start by following the given below steps for adding a new/custom table in the customer grid in Magento 2.

Name:  How to Add New Column in Customer Grid in Magento 2.png
Views: 19
Size:  33.1 KB

Importance of Customer Grid

In the importance of the customer grid, we can say that during the online shopping the customers register on your online shop of Magento 2, there is a mandatory to fill some fields, for example, email, mobile number, first name, last name. If a customer desires to provide some extra information. For this intention, we need to add some of the extra fields in the registration form.

In this blog, we will include how to add a new/custom table in the customer grid in Magento 2, I will explain to you how to perform and how actually it works.
Let’s Get Started with How to Configure:

Note: Customer grid gets data for listing and filtering from customer_grid_flat table.

Step 1 : For performing this, create sales_order_grid.xml file inside app\code\Vendor\Extension\view\adminhtml\ui_compon ent

for more detail : https://magecomp.com/blog/magento-2-...customer-grid/

View more threads in the same category: