Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Creating, managing and using Customer entity attributes

-1
votes
0answers
14 views

Add customer account attribute in billing checkout form

I have a custom customer attribute in Account Information. I can populate it in registration form but how can i use it in billing checkout form also?
0
votes
1answer
28 views

No such entity with customerId

I get this error when trying to register an account : No such entity with customerId = 13818 I think it might be some old custom attribute that is the root of the problem. How can I clean the ...
0
votes
1answer
21 views

Magento 2 hide customer fields based on url parameter

I have a custom url parameter in the admin create new account page which goes like this : mysite.com/admin/customer/index/new/addcompany/1/key/ea3f0bcad39...... where addcompany is the parameter ...
0
votes
1answer
24 views

How to get customer id using email-id without using objectManager in Magento 2.2.5

I have a customer-email on custom controller & want to get customer-id without using objectManager. how can I get? Currently, I'm getting using objectManger & here is the controller code:- ...
0
votes
0answers
37 views

In Magento 2.2.5 The Custom attributes values are not coming in Collection

In Magento 2.2.5, I am creating a Custom Product and Customer attributes. It is saving fine, but while retrieving, It is not coming in the Collection. Here is my Code. UpgradeData.php $eavSetup = $...
0
votes
0answers
11 views

Have any extension on Magento2 for customer attribute listing and edit like product?

I want same listing of customer attributes like product in magento2. Do have any extension we can directly achieve this?
0
votes
0answers
32 views

How to Hide/Show Customer attribute based on customer group in Admin panel Magento 2?

How to Hide/Show Customer attribute when the customer group is switched from general to the wholesale group?.
2
votes
1answer
31 views

Magento2 - adminhtml_customer not showing in Forms to Use In

I have programatically created a customer attribute and set it to be displayed in adminhtml_customer. All is good, the attribute is being displayed only in the admin customer edit section as desired. ...
3
votes
1answer
32 views

Save customer custom attribute in checkout

I'm really stuck with this thing. I added a customer address attribute with the following install data in my custom module <?php namespace Vendor\Module\Setup; use Magento\Framework\Setup\...
4
votes
2answers
178 views

Magento 2 : Unable to set custom customer attributes programmatically

I have a cron job that runs once a day, that reads a file uploaded to the server, and registers users from that file. The code works fine, but now I added a custom attribute to the customer (lets call ...
2
votes
2answers
38 views

Customer custom attribute not being saved

I'm using magento v2.5 and i tried to create customer programmatically from frontend and backend, i share the same code between frontend and backend, after customer being save then i try to save the ...
0
votes
2answers
33 views

Customer Object data display issue

I am trying to retrieve customer data with customer Object. Below is the code:- protected $customerRepository; public function __construct( \Magento\Customer\Api\CustomerRepositoryInterface $...
1
vote
1answer
77 views

How to get customer gender options Magento 2

I want to display select input field which contain customer gender options in my custom layout block in magento 2 ? how can i do this? /Vendor/Module/Block/Customer.php public function ...
0
votes
0answers
17 views

Custom checkbox field in registration page magento 2.1

I've been facing issue with saving data field value. I want some brands on registration page where the customer can select one and all brands but how can I save data in backend and database?
0
votes
2answers
52 views

How to add Customer custom field then display it in registration form

I want to know how to create custom field for customer and display that custom field in the registration page using plugin interpertor.
0
votes
0answers
30 views

create custom date field with calendar in Magento2

I created Custom customer attribute: <div class="field"> <label for="customdate" class="label"><span><?php /* @escapeNotVerified */ echo __('Custom Date') ?></span>&...
0
votes
0answers
11 views

Magento2 display Fax and Is Active attributes in admin customer edit form

Can anyone let me know how to display Is Active attribute of customer in Customer Edit form and Fax attribute in Address tab in Admin panel?
0
votes
1answer
32 views

Customer Attribute Causing Error in Magento 2.2.5

I'm getting an error whenever I try to got into the "All customers" part of the admin page. The error shows as follows There has been an error processing your request Exception printing is disabled ...
1
vote
2answers
32 views

Unable to show custom customer attribute only in adminhtml customer form

I have created some custom customer attribute that I need to show only in admin customer form. For these attributes i used in my InstallData 'used_in_forms' => ['adminhtml_customer'] In ...
0
votes
1answer
93 views

How can we display custom drop down in registration page?

I created Custom customer attribute: $customerSetup->addAttribute(Customer::ENTITY, 'customer_type', [ 'type' => 'int', 'label' => 'Corporation Or ...
0
votes
0answers
26 views

Magento 2 : How can we display custom drop down in registration page?

I created Custom customer attribute: $customerSetup->addAttribute(Customer::ENTITY, 'customer_type', [ 'type' => 'int', 'label' => 'Corporation Or ...
0
votes
2answers
55 views

How to set customer custom attribute in magento 2?

I have created some custom attributes for a customer in magento2 community edition, I have used below code to set in my custom code use Magento\Customer\Api\AccountManagementInterface; use Magento\...
0
votes
0answers
7 views

What is the procedure to obtain an MSME registration?

The procedure for MSME registration is online and requires details like a valid Aadhaar number, Name of the applicant, mobile number and email ID of the applicant, social category, name of the ...
1
vote
1answer
70 views

Create customer custom attribute checkbox in edit form backend

I added my customer attribute. But I want to display these fields as checkboxes. I created checkbox in the frontend easily but the backend is not. And then save to the database. Please help me. ...
1
vote
0answers
39 views

Magento 2.2.3 Display Boolean Attribute on Customer Registration Form

I am trying to display a Boolean Select input on the customer registration page. I have successfully created the customer attribute using the code below. But I am not able to display this attribute on ...
0
votes
1answer
20 views

Magento Custom Customer Attribute Issue

I am trying to create a custom attribute for customer but with no success. I am using Magento CE 2.2.3. Below are the steps I am using Step 1 Create a Vendor\Module\Setup under add\code Create ...
0
votes
0answers
16 views

Add list of users with specific role as customer attribute

How can I add customer attribute similar to Group attribute but with users with specific user role? With this site > http://www.silksoftware.com/magento-module-creator/magento2x.php I generated ...
0
votes
1answer
31 views

New Customer Attribute with UpgradeData

I have used below code in my setup folder to create custom customer attributes, use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\...
0
votes
0answers
49 views

Customer has no tokens error during customer update in Magento2

I am using below code in my controller to update customer from the post values: $userId = $this->getRequest()->getParam('user_id', false); $oldUser = $this->_getUser($userId); $...
0
votes
2answers
24 views

Customer custom attribute not saving while creating customer programmatically in magento 2.1.11

I am using following code to create customer in magento 2 programmatically namespace PackageName\ModuleName\Helper; use Magento\Framework\App\Bootstrap; include('app/bootstrap.php'); $bootstrap = ...
1
vote
0answers
96 views

Magento 2 Save custom customer attribute to customer addresses in checkout

There are many post on Stackexchange and blogs that explain how to add custom field to checkout forms. Some of them also explain how to save them to quote/order address. I've achieved all these ...
0
votes
1answer
32 views

Customer custom attribute not included in collection by default in edit account information

I've created a custom customer attribute "Skype", for more detail you can visit here:- http://nimb.ws/CrM0YF I've displayed & saved(in the backend) successfully this attribute on the ...
2
votes
1answer
153 views

magento 2.2.5: Adding Custom Attribute to Customer Edit Form in Admin

I am trying to add a custom attribute using below code but its not working - namespace A2bizz\Customer\Setup; use Magento\Customer\Setup\CustomerSetupFactory; use Magento\Customer\...
3
votes
1answer
165 views

Magento 2 : Display Customer Attribute in Grid

I have a Customer Attribute with Image Type. Its working Good all in all areas. I would like to display that attribute in Customer Listing same as Product Image. How to do this? Any ideas will be ...
0
votes
0answers
31 views

M 2.2 dropdown attribute in frontend form - populate options with attribute values in .phtml

I have a custom customer select attribute. It works just fine in the backend. Now I need to provide it as a dropdown field in my frontend (customer registration form). How can I add it to the form ...
0
votes
0answers
28 views

Magento 2: Hide Admin Attributes Based on other Attribute's Value

I've created some custom yes/no Customer Attributes in the admin area. Now I'm looking to hide some attribute fields if these are set to no For example, I have a yes/no attribute called ...
0
votes
2answers
28 views

Custom customer attribute not being created

I have written the following script to create a custom customer attribute in Magento 2.2.3. When I run setup:upgrade magento tells me data was installed but the attribute does not appear in ...
0
votes
0answers
24 views

M2 registration form custom customer select attribute in select box

I have a custom customer select attribute that I created with the following InstallData script. It works fine in the backend (customer account). I want it to be also in the customer registration form ...
1
vote
0answers
95 views

Magento 2.2: Add Customer Attribute to Custom Tab in Admin

I'm trying to a add some custom attributes to a custom tab I created in the Customer Admin page. I've created the custom tab with the following code: Vendor\MyModule\view\adminhtml\layout\...
0
votes
0answers
24 views

Add customer custom field to checkout review step

How can i add my custom field stored in "customer account information" on checkout review step just before place order in magento 1.9.*? this is my custom field setup code $installer = $this; $...
0
votes
0answers
63 views

Customer export not working after creating custom attributes for customer_address

I have a problem with Magento 1.9 customer export native functions. When I want to export the customers I get this error: Fatal error: Uncaught Error: Call to a member function getFrontendInput() ...
0
votes
1answer
78 views

Magento 2 : customer attribute not display at frontend while using print_r()

Hello Everyone, I have created a custom attributes for a customers it's working fine in admin also save data and get data while attributes have any certain value in textbox But if attribute ...
3
votes
2answers
876 views

Customer custom attribute not showing in admin form

I successfully add customer custom attribute for magento 2.2.5 like this: $setup->startSetup(); $insertArray = array( 'profile_picture' => array("type" => "varchar", "label" =&...
0
votes
1answer
57 views

Add customer attribute with yes/no option

I need to create custom Customer Attribute with Yes/No option. I successfully created ones with Text input previously. What I need now is, create a separate attribute for set if Customer is on Hold or ...
0
votes
2answers
110 views

Customer custome attribute value get by customer id in magento 1.9

Hi I have custom customer attribute for customer in my magento 1.9. I want that custom attribute value by customer id.
0
votes
1answer
89 views

Customer attribute is not being saved after migration

I have migrate database from Magento 1.9.3.1 to Magento 2.2.3 via data-migration-tool and it went without any errors in proccess. Everythink I need was mograted to new database. But I have noticed ...
0
votes
2answers
638 views

Magento2 : user define customer attribute not save value while create / save from admin

I have created two customer attribute one "abc" and second is "xyz" this two attribute display properly in customer admin. also attributes are created in database table "eav_attribute". But while save ...
1
vote
2answers
63 views

Add multiple customer attribute fields in Magento registration form

I am trying to add 2 customer attribute fields in my Magento registration form. The input names are the same in the register.phtml as in the install-1.0.0.php file. However I think there is something ...
0
votes
5answers
383 views

How to prevent “Call to a member function getValue() on null” when using getCustomAttribute()->getValue()?

My colleague wrote some code, which is hidden behind an interface: $myCustomValue = $customer->getCustomAttribute('my_custom_attribute')->getValue(); Working on integrations now, I invoke his ...
0
votes
1answer
139 views

Remove Validation for Last Name Field from all places

I want to remove validation from lastname field from admin panel as well as frontend in magento 2.1.12.Please tell me solution.