Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
19 views

Problem with customer custom attributes

I have a problem with my Magento, since I added some customer custom attributes... Here we can see siret_number, function, structure_type. Fields are display on the create form customer, but when I ...
0
votes
0answers
12 views

Magento2 Tax/VAT field not showing properly in customer registration based on admin configuration

I have Two Website in my magento2.2 webA & webB I want "Tax/VAT number" field in different scenarios on my website webA enabled and required webB enabled and optional I did the ...
1
vote
0answers
19 views

New Customer address attribute not saving on Frontend

I have created a new customer address attribute, it shows the field correctly on the frontend BUT it doesn't allow you to save the data. It does work correctly when saving through admin, and then ...
0
votes
0answers
16 views

How to filter a customer boolean attribute on the admin invoice grid(Magento 1.9)?

I can successfully display a Yes or No for my customer boolean attribute on the admin invoice grid using the following code. Here's the collection setup: $entityType = 'customer'; $attributeCode = '...
2
votes
1answer
26 views

How can I reload shipping methods when custom checkbox address attribute clicked?

Is there a way to update the shipping methods when clicked on my custom checkbox attribute? When I change the city or the postal code the shipping method reloads but not with my custom checkbox. ...
0
votes
0answers
8 views

Magento 1: Adding attribute to customer makes save customer hang

I need to add a checkbox to the admin customer edit form. I can successfully add the checkbox using this code: <?php $name = 'test_foo'; $forms = array('adminhtml_customer'); $baseDir = dirname(...
1
vote
1answer
32 views

Magento 2 : Add attribute options programmatically in custom attribute

I have created custom attribute which type is Select. That attribute is available inside custom eav entity type. I want to add attribute options inside that attribute. How to do that? Any help would ...
0
votes
1answer
24 views

How to create customer attribute as dropdown and checkbox in Magento2.2.5?

I want to create customer attribute for the field as dropdown and checkbox and must save as YES/NO in backend in Magento2? Refer screenshot.
0
votes
0answers
16 views

Magento 2 : Error when importing customers

When trying to import Customers from the backend, Data validation is OK but when I click on import button, the page gets stuck on please wait for loader and I get the error : See the logs below ...
0
votes
0answers
30 views

How to use the required validation in customer add form for a custom filed?

I have created a custom field in customer add form. I want that filed as required field in the customer add form but not in customer edit form. Please suggest how can I implement this. Thanks in ...
0
votes
0answers
15 views

Add Customer Attributes through Admin Form

I'm trying to build a extension where I can dynamically add new Customer Attributes just like I would do with Product Attributes. The thing is that I'm new to Admin Grid and I'm not finding the a few ...
2
votes
1answer
26 views

Customer attribute with Image upload throwing error

I've created one customer attribute with input type, Check below code for reference. public function install( ModuleDataSetupInterface $setup, ModuleContextInterface $context ) { $...
0
votes
0answers
75 views

How can I show Customer & Address attribute based on store Magento 2

I have Two websites I need to show a custom attribute only in one websites and not on the other, How can I achieve?
1
vote
1answer
50 views

2.2.6 - Email address is now required. Why?

Create New Order -> Create New Customer -> Email field is now required. Why has this been implemented and why is it not noted on the Release Notes for 2.2.6? How do I make it a non-required field ...
1
vote
1answer
79 views

How to save the data for customer custom attribute in magento 2

I created a custom customer attribute using an install script. $customerSetup -> addAttribute(\Magento\Customer\Model\Customer::ENTITY, 'is_mpowersync', [ 'label' => 'Is ...
0
votes
0answers
30 views

Add Customer Attribute using REST API in 2.3.1

I am using Magento Open Source 2.3.1, REST API and would like to add a customer attribute (if it does not exists already). I could already add product attributes successfully and I can get a list of ...
2
votes
0answers
35 views

Please give the solution regarding the error [closed]

Please Help me i found this error. Uncaught Error: [object Object] at Object. (/looper/en/pub/static/frontend/Szdev/loopper/en_US/Magento_Customer/js/customer-data.js:92) at fire (/...
1
vote
1answer
60 views

custom customer attribute value not storing in database magento 2

<?php namespace Vendor\Module\Setup; use Magento\Framework\DB\Ddl\Table; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\...
4
votes
0answers
120 views

Magento2 : How to add row/pattern type of customer attribute

How to add a row/pattern type of custom customer attribute (dynamic rows). We have the below attribute in Magento 1, we need to achieve the same in Magento 2. I don't find any code reference for this,...
1
vote
3answers
170 views

Magento 2.3 - How to add custom column to customer_entity table

I'm creating a Referral Program module, and I want to create a custom column inside the customer_entity table. The column is referred_by and it's a foreign key that as a relation with the ...
4
votes
2answers
66 views

Magento 2.3 - Add custom customer entity attribute with service contract

I have some problem to save custom customer entity attribute in database. I've created a Patch to add this attribute to the customer entity. The attribute is shown correctly in the backend, but when I ...
1
vote
0answers
24 views

how to save values to magento customer module default stored attributes in magento2? [closed]

I have created new filed in Magento 2 registration form I want to save the values to default stored attributes (if Zip code => default in Magento 2 attributes) How to pass the values to that ...
1
vote
1answer
62 views

How to add second field in registration form in Magento 2?

I added one attribute using this code but when I try to add another attribute then it is not working why? <?php namespace Icore\Module\Setup; use Magento\Customer\Model\Customer; use Magento\...
1
vote
1answer
71 views

Magento 2 filter not working on custom customer attribute

I have created custom customer attribute. It is displaying in customer grid in admin panel but when I try to filter on my custom attribute, I get error SQLSTATE[42S22]: Column not found: 1054 ...
0
votes
0answers
24 views

Magento 2 How to Pre-fill Billing/Shipping address fields with customer account information data?

When Adding Billing/Shipping address I need to pre-fill the fields with customer account information data. I have created a custom Fax field as customer eav attribute so that it appears in ...
3
votes
0answers
45 views

Magento 2 How can I add State and Country attribute for customer in Admin?

How can I achieve State and Country field functionality in Admin under customer Account Information? I have referred this link to create in front-end https://magecomp.com/blog/create-country-...
3
votes
1answer
47 views

Magento 2 - Add Customer Attribute with Select Field

I'm trying to insert a customer attribute in magento 2 This is the InstallData script: use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use ...
0
votes
0answers
149 views

Magento2 How to add country and state drop down in customer account information tab and display state based on country selected in admin

I need to integrate country and state fields for customers, I created them and listed successfully in frontend registration and profile. When working with admin I can see the two fields but the ...
1
vote
1answer
42 views

Custom address attribute: issue on display value magento 2

I have created a custom attribute for customer address. I can see the attribute on admin, I can insert value on frontend, the value saved successfully (and it displayed in address preview) however if ...
3
votes
2answers
27 views

How to validate Magento 2 form field input value with database table field to find out if already exists?

I have added following affiliate email field (custom attribute) to the customer registration form. Now I want to validate that if value already exists in the database table. <div class="control"&...
1
vote
3answers
157 views

How to get Customer attribute value by loading customer id in magento 2

I have customer entity id, how do i get customer attribute value by loading customer entity id, Please provide me a solution
1
vote
0answers
20 views

How to create a customer attribute only for one store?

I can create a customer attribute using below script: <?php namespace Vendor\CustomerMobileNumber\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\...
0
votes
0answers
32 views

Magento2 Getting issue on Reindex SQLSTATE[42000]: Syntax error or access violation: 1070

Getting issue on Reindex, I was about to create a new customer attribute, How can i fix this, I also need is_used_in_grid = true Customer Grid indexer process unknown error: SQLSTATE[42000]: Syntax ...
1
vote
0answers
19 views

How to keep the customer custom attribute filled in case of validation error Magento 2

I have created an attribute in customer level from admin and when i submit the form and after validation, if any error occurs then it redirects to same form page with an error but the field is not pre-...
2
votes
2answers
39 views

Magento 2 custom customer attribute data not saved

We are working on Magento 2.2 create custom attribute seller_id for customer,this attribute is created successfully. But we can not display this attribute when loading the customer data. <?php ...
0
votes
1answer
30 views

How to display a dropdown -customer attribute- in customer registration form?

I still cannot figure out how to display the dropdown on the customer registration form at app/design/frontend/base/default/template/persistent/customer/form/register.phtml Any ideas how? Setup file:...
2
votes
0answers
21 views

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

I want to create customer custom attributes with following types: 1.radio buttons 2.checkbox Please provide me a solution to create customer custom attribute. If the checkbox contains more than 3 ...
1
vote
1answer
251 views

Attempt to load value of nonexistent EAV attribute for entity type Magento\Catalog\Api\Data\ProductInterface magento 2.3

Actually i am getting this error while editing products from product grid magento2.3 Actually i deleted some custom attribute using code as well as manually from backend after this i got ...
6
votes
1answer
287 views

Add option for custom select attribute on customer edit page Magento 2

I want to add my own custom option for an attribute.Please see attached image. Just guide me which files i need to create. I have just created one file for now. Please see code below, app/code/...
1
vote
0answers
21 views

How to call and place customer dropdown attribute in Customer Registration Page and One Step Checkout?

I have made a custom customer dropdown attribute like shown in the screenshot (through Silk Software). See Screenshot: I was wondering how to make show the dropdown in the customer registration form ...
0
votes
0answers
36 views

Magento 2 : Create file type customer attribute

I've created customer attribute with type 'file'. Below is my code. $attributesInfo = [ 'upload_documents' => [ 'label' => 'Upload Document', 'type' => '...
0
votes
1answer
19 views

Magento 2 Check a customer attribute is changed during save

I have created user Approve module which lets admin to approve user after registration. I want to send a email on activation and deactivation of a user, How can I find that the admin has changed the ...
0
votes
2answers
86 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' => '...
1
vote
2answers
206 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
28 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

Unable to get custom customer Address attribute value to customer grid

I've created custom customer address attribute through admin panel. Attribute value is inserting in customer_address_entity_int table. I'm able to see custom attribute in grid options but attribute ...
2
votes
2answers
228 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 ...
1
vote
0answers
28 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
85 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
23 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 ...