My client wants a new column “customerNumber” in the system, to uniquely identify his customers (no, id’s won’t work, he wants to be able to change it). Here’s what I have so far: etc/di.xml <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <virtualType name=”MagentoCustomerModelResourceModelGrid”> <arguments> <argument name=”columns” xsi:type=”array”> <item name=”customer_number” xsi:type=”string”>customer_entity.customer_number</item> </argument> </arguments> </virtualType> </config> etc/module.xml <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module …
Continue reading “How to display a custom column in Customer Table”