Magento 2: How to add custom attribute column in customer grid in adminHow can i rewrite TierPrice Block in...

Is there any other number that has similar propertie as 21?

Why did other German political parties disband so fast when Hitler was appointed chancellor?

Digits in an algebraic irrational number

How do you funnel food off a cutting board?

Writing a character who is going through a civilizing process without overdoing it?

Can I become debt free or should I file bankruptcy ? How to manage my debt and finances?

Why is mind meld hard for T'pol in Star Trek: Enterprise?

One Half of Ten; A Riddle

Can you tell from a blurry photo if focus was too close or too far?

How to prevent cleaner from hanging my lock screen in Ubuntu 16.04

How to count the characters of jar files by wc

How to limit sight distance to 1 km

Why do stocks necessarily drop during a recession?

What is the purpose of easy combat scenarios that don't need resource expenditure?

Incorporating research and background: How much is too much?

Who is this Ant Woman character in this image alongside the Wasp?

How do Chazal know that the descendants of a Mamzer may never marry into the general populace?

Difference between `vector<int> v;` and `vector<int> v = vector<int>();`

Pronunciation of umlaut vowels in the history of German

Program that converts a number to a letter of the alphabet

Word or phrase for showing great skill at something WITHOUT formal training in it

How to say "Brexit" in Latin?

Are there any modern advantages of a fire piston?

It took me a lot of time to make this, pls like. (YouTube Comments #1)



Magento 2: How to add custom attribute column in customer grid in admin


How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlAdd custom column to customer admin gridmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?How to add href to custom attribute in customer grid?Magento 2: Add attribute to customer gridMagento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsAdd a custom attribute in grid customer magento 2













0















I had created a custom attribute for customer's nick name, i want to show that attribute in customer's grid so i implemented below solution but its won't work!



My magento version is 2.2.3.



Can anyone tell me what's wrong in it??



VENDOR/MODULE/etc/indexer.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Indexer/etc/indexer.xsd">
<indexer id="customer_grid" class="MagentoFrameworkIndexerActionEntity" primary="customer">
<fieldset name="customer" source="MagentoCustomerModelResourceModelCustomerCollection"
provider="MagentoCustomerModelIndexerAttributeProvider">
<field name="customer_nick_name" xsi:type="filterable" dataType="varchar"/>
</fieldset>
</indexer>




 $attributesInfo = [
'customer_nick_name' => [
'label' => 'Nick Name',
'type' => 'varchar',
'input' => 'text',
'position' => 1000,
'visible' => true,
'required' => false,
'system' => 0,
'user_defined' => true,
'position' => 1000,
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'is_searchable_in_grid' => true,
]
];


I also deleted var and generated and run command for reindex but it won't effect.



Help would be appreciate.










share|improve this question

























  • Where have you defined attributesInfo array?

    – Vivek Kumar
    Apr 2 '18 at 11:22













  • its in Vendor/Module/Setup/InstallData.php @VivekKumar

    – Vrutik Suthar
    Apr 2 '18 at 11:47











  • are you able to see and save your at customer edit form?

    – Vivek Kumar
    Apr 2 '18 at 12:07













  • Yes i can see Nick name field in add customer and edit customer values are strored in database all working fine except grid. @VivekKumar

    – Vrutik Suthar
    Apr 2 '18 at 12:21











  • I think it should be available in column options located above grid, check and update.

    – Vivek Kumar
    Apr 2 '18 at 12:27
















0















I had created a custom attribute for customer's nick name, i want to show that attribute in customer's grid so i implemented below solution but its won't work!



My magento version is 2.2.3.



Can anyone tell me what's wrong in it??



VENDOR/MODULE/etc/indexer.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Indexer/etc/indexer.xsd">
<indexer id="customer_grid" class="MagentoFrameworkIndexerActionEntity" primary="customer">
<fieldset name="customer" source="MagentoCustomerModelResourceModelCustomerCollection"
provider="MagentoCustomerModelIndexerAttributeProvider">
<field name="customer_nick_name" xsi:type="filterable" dataType="varchar"/>
</fieldset>
</indexer>




 $attributesInfo = [
'customer_nick_name' => [
'label' => 'Nick Name',
'type' => 'varchar',
'input' => 'text',
'position' => 1000,
'visible' => true,
'required' => false,
'system' => 0,
'user_defined' => true,
'position' => 1000,
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'is_searchable_in_grid' => true,
]
];


I also deleted var and generated and run command for reindex but it won't effect.



Help would be appreciate.










share|improve this question

























  • Where have you defined attributesInfo array?

    – Vivek Kumar
    Apr 2 '18 at 11:22













  • its in Vendor/Module/Setup/InstallData.php @VivekKumar

    – Vrutik Suthar
    Apr 2 '18 at 11:47











  • are you able to see and save your at customer edit form?

    – Vivek Kumar
    Apr 2 '18 at 12:07













  • Yes i can see Nick name field in add customer and edit customer values are strored in database all working fine except grid. @VivekKumar

    – Vrutik Suthar
    Apr 2 '18 at 12:21











  • I think it should be available in column options located above grid, check and update.

    – Vivek Kumar
    Apr 2 '18 at 12:27














0












0








0








I had created a custom attribute for customer's nick name, i want to show that attribute in customer's grid so i implemented below solution but its won't work!



My magento version is 2.2.3.



Can anyone tell me what's wrong in it??



VENDOR/MODULE/etc/indexer.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Indexer/etc/indexer.xsd">
<indexer id="customer_grid" class="MagentoFrameworkIndexerActionEntity" primary="customer">
<fieldset name="customer" source="MagentoCustomerModelResourceModelCustomerCollection"
provider="MagentoCustomerModelIndexerAttributeProvider">
<field name="customer_nick_name" xsi:type="filterable" dataType="varchar"/>
</fieldset>
</indexer>




 $attributesInfo = [
'customer_nick_name' => [
'label' => 'Nick Name',
'type' => 'varchar',
'input' => 'text',
'position' => 1000,
'visible' => true,
'required' => false,
'system' => 0,
'user_defined' => true,
'position' => 1000,
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'is_searchable_in_grid' => true,
]
];


I also deleted var and generated and run command for reindex but it won't effect.



Help would be appreciate.










share|improve this question
















I had created a custom attribute for customer's nick name, i want to show that attribute in customer's grid so i implemented below solution but its won't work!



My magento version is 2.2.3.



Can anyone tell me what's wrong in it??



VENDOR/MODULE/etc/indexer.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Indexer/etc/indexer.xsd">
<indexer id="customer_grid" class="MagentoFrameworkIndexerActionEntity" primary="customer">
<fieldset name="customer" source="MagentoCustomerModelResourceModelCustomerCollection"
provider="MagentoCustomerModelIndexerAttributeProvider">
<field name="customer_nick_name" xsi:type="filterable" dataType="varchar"/>
</fieldset>
</indexer>




 $attributesInfo = [
'customer_nick_name' => [
'label' => 'Nick Name',
'type' => 'varchar',
'input' => 'text',
'position' => 1000,
'visible' => true,
'required' => false,
'system' => 0,
'user_defined' => true,
'position' => 1000,
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'is_searchable_in_grid' => true,
]
];


I also deleted var and generated and run command for reindex but it won't effect.



Help would be appreciate.







magento2 php admin custom-attributes customer-grid






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 49 mins ago









Muhammad Hasham

2,0141424




2,0141424










asked Apr 2 '18 at 10:23









Vrutik SutharVrutik Suthar

11




11













  • Where have you defined attributesInfo array?

    – Vivek Kumar
    Apr 2 '18 at 11:22













  • its in Vendor/Module/Setup/InstallData.php @VivekKumar

    – Vrutik Suthar
    Apr 2 '18 at 11:47











  • are you able to see and save your at customer edit form?

    – Vivek Kumar
    Apr 2 '18 at 12:07













  • Yes i can see Nick name field in add customer and edit customer values are strored in database all working fine except grid. @VivekKumar

    – Vrutik Suthar
    Apr 2 '18 at 12:21











  • I think it should be available in column options located above grid, check and update.

    – Vivek Kumar
    Apr 2 '18 at 12:27



















  • Where have you defined attributesInfo array?

    – Vivek Kumar
    Apr 2 '18 at 11:22













  • its in Vendor/Module/Setup/InstallData.php @VivekKumar

    – Vrutik Suthar
    Apr 2 '18 at 11:47











  • are you able to see and save your at customer edit form?

    – Vivek Kumar
    Apr 2 '18 at 12:07













  • Yes i can see Nick name field in add customer and edit customer values are strored in database all working fine except grid. @VivekKumar

    – Vrutik Suthar
    Apr 2 '18 at 12:21











  • I think it should be available in column options located above grid, check and update.

    – Vivek Kumar
    Apr 2 '18 at 12:27

















Where have you defined attributesInfo array?

– Vivek Kumar
Apr 2 '18 at 11:22







Where have you defined attributesInfo array?

– Vivek Kumar
Apr 2 '18 at 11:22















its in Vendor/Module/Setup/InstallData.php @VivekKumar

– Vrutik Suthar
Apr 2 '18 at 11:47





its in Vendor/Module/Setup/InstallData.php @VivekKumar

– Vrutik Suthar
Apr 2 '18 at 11:47













are you able to see and save your at customer edit form?

– Vivek Kumar
Apr 2 '18 at 12:07







are you able to see and save your at customer edit form?

– Vivek Kumar
Apr 2 '18 at 12:07















Yes i can see Nick name field in add customer and edit customer values are strored in database all working fine except grid. @VivekKumar

– Vrutik Suthar
Apr 2 '18 at 12:21





Yes i can see Nick name field in add customer and edit customer values are strored in database all working fine except grid. @VivekKumar

– Vrutik Suthar
Apr 2 '18 at 12:21













I think it should be available in column options located above grid, check and update.

– Vivek Kumar
Apr 2 '18 at 12:27





I think it should be available in column options located above grid, check and update.

– Vivek Kumar
Apr 2 '18 at 12:27










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f220715%2fmagento-2-how-to-add-custom-attribute-column-in-customer-grid-in-admin%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f220715%2fmagento-2-how-to-add-custom-attribute-column-in-customer-grid-in-admin%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

“%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

夢乃愛華...