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

Questions tagged [customer-attribute]

Creating, managing and using Customer entity attributes

0
votes
2answers
33 views

How to create customer custom Drop Down attributes in magento 2

Namespace/Module/setup/installData.php $customerSetup->addAttribute(Customer::ENTITY,'credit_type', [ 'type' => 'int', 'label' => '...
0
votes
2answers
35 views

How to convert this object data into array?

I have this Data Object value. Magento\Customer\Model\Data\AttributeMetadata Object ( [_data:protected] => Array ( [frontend_input] => boolean [input_filter] ...
0
votes
0answers
6 views

Add Customer custom attribute to invoice pdf

I want to add Customer custom attribute ( code : ice ) to invoice pdf in app/code/core/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php can anybody help me ?
0
votes
0answers
20 views

Magento 2 - Customer Custom File Attribute unable to save

I have Created my own Customer Attribute, it was a File attribute. While try to upload a file in that, it shows error like, "<File Field Name>" is not a valid file. While checking in Media ...
0
votes
0answers
15 views

“Custom Attribute” is a required field Error Message - Custom customer Attribute on register user

Hello I added an custom customer attribute "kndnumber" to my register page. Attribute is successfully created in DB. My Problem is when I submit the user register request the error Messsage "...
0
votes
1answer
18 views

display mobile number in create an account page in magento 2

I want to display mobile number in create an account page in Magento 2. Iam editing below page with following code but it include address also in my create an account page, I just want telephone ...
0
votes
2answers
19 views

Magento 2 - InstallData script doesn´t add column to my 'customer_entitiy'

I´m now trying to add a custom attribute for like 5 hours now. It drives me nuts that I dont find the solution hope you can help me. I want a custom attribute to be displayed and saved when the user ...
0
votes
2answers
31 views

How to create customer custom attribute for radio buttons, checkbox in magento 2

I wish to create customer custom attributes with following types: 1.radio buttons 2.checkbox 3.dropdowns Please provide me a solution to create customer custom attribute.
1
vote
1answer
30 views

`upgradeData` to add a custom customer attribute is not working in `Magento2`

I've created few customer attribute using upgradeData.php. The content of the upgradeData.php is as below, <?php namespace Ucs\CustomerAttribute\Setup; use Magento\Customer\Model\Customer; use ...
1
vote
2answers
83 views

Magento 2: Custom Customer Attributes Showing in Customer Grid but Not Admin Account

I'm currently on Magento 2.2.6 and I created a multiple select attribute as well as a yes/no attribute for customers in the admin page, however I'm not seeing them show up and not sure where I went ...
0
votes
2answers
43 views

Magento 2 in frontend can not able to get the customer custom attribute value

I have created a custom customer attribute, and while create and update customer from backend the value will be saved in Database. But while do the same thing from front-end the value is not able to ...
0
votes
0answers
23 views

Export csv Not working for the custom attributes customer grid Magento2

Below showing code is my customer_listing.xml, export csv not working when selected checkbox's export from grid. <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
97 views

How to mass update custom dropdown customer attribute to all customers? PHP or SQL

I created a new customer attribute (Drop Down) and added it to the registration form. Attribute details found in eav_attribute table: Everything work as expected, attribute is added to the customer ...
0
votes
0answers
29 views

custom attribute save is not working during regsitration

I have created custom attribute, and i'm displaying those attribute in registration page. When user clicks on create an account i get values for custom attribute from post value. But when i tried to ...
3
votes
1answer
115 views

Add a custom attribute in grid customer magento 2

I have created an attribute type: select but i can't display it in the grid customer. the code of my customer_listing.xml <column name="customer_status"> <argument name="data" xsi:...
0
votes
0answers
33 views

Magento 2: Saving Customer Attribute Logs Admin User Out

I am working on a Magento 2.2.6 site. I've migrated the data from a Magento 1.9 site and everything is working fine, apart from customer Attributes. We are using Amasty Customer Attributes module to ...
0
votes
0answers
43 views

Magento 2: Create Customer Attribute in Custom Save Controller

I have a custom module with a custom form in admin. On this form save action, I want to create customer attribute programmatically with the data fetched from the custom form. How can I do it. ...
0
votes
0answers
35 views

How to display custom attributes on customer dashboard magento2

I am using Magento 2.1 and I have created one custom attributes named Landlord using below code in installdata.php file $customerSetup->addAttribute(\Magento\Customer\Model\Customer::ENTITY, '...
0
votes
2answers
141 views

how to add city dropdown on checkout page instead of typing the city(M2)

I need to get rid of this company text field and Country drop down since the store serves locally. Important : How I can overide the city (text area) to a drop down with my own custom city list.?
0
votes
0answers
34 views

Magento 1.9 - PHP7 Saving customer Redirects

we've got a strange issue which has only just been picked up. When you try and save a customers record you get redirected back to the dashboard and the customer's information doesn't save. In the ...
0
votes
1answer
144 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
28 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
43 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
12 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
57 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
37 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
253 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
270 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
89 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
34 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
251 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
2answers
94 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
115 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
14 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?
1
vote
2answers
78 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
205 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
46 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
108 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\...
1
vote
1answer
209 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
165 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
32 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
18 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
45 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
167 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
32 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 = ...
2
votes
0answers
160 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
82 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 ...
3
votes
1answer
261 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
229 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
42 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 ...