- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2019
03:34 AM
10-31-2019
03:34 AM
try this link: https://magento.stackexchange.com/questions/126820/magento-2-how-to-add-a-custom-column-in-customer-...
this link helped me,
thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2019
01:21 AM
11-18-2019
01:21 AM
Re: [Magento2.2]Show a custom attribute in Customer table in administration template
Hi @RanjeetBhojwani ,
that thread helped me!
To fix the issue i had to Update my custom attributes adding the
'is_used_in_grid' => true,
param in the Customer Entity, when creating the new attributes. Then i created the /etc/indexer.xml file with the following content:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Indexer/etc/indexer.xsd">
<indexer id="customer_grid">
<fieldset name="customer">
<field name="codice_fiscale" xsi:type="filterable" dataType="varchar"/>
<field name="piva_azienda" xsi:type="filterable" dataType="varchar"/>
</fieldset>
</indexer>
</config>
and now everything it's working as it should. Thank you
- « Previous
-
- 1
- 2
- Next »