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]

denotes questions related to the customers module

1
vote
1answer
20 views

Magento 1.9: Massive set customer confirmation attribute

I imported over 3000 customers in magento, I need to set them all as confirmed. How can I do?
0
votes
0answers
17 views

How to get custome token in PHTML magento 2

I need to add products in the cart using rest api in javascript. Code is below: var data = JSON.stringify({ "cartItem": { "sku": "240-LV08", "qty": 1, "quote_id": "4" } }); var xhr =...
1
vote
0answers
16 views

How to select a shipping method if the default address is present in checkout page in Magento 2?

I need to select the first method rendering in the list as the default selected among the shipping methods in the checkout page for a customer whose default shipping address is pre-populated in the ...
0
votes
0answers
28 views

Magento 2 : Rest Api for access customer id with token

I want to get customer id with token. Currently we receive only access token using this API rest/V1/integration/customer/token Method : Post { "username":"customer1@example.com", "password":"...
0
votes
2answers
36 views

“Telephone” is a required value not working in customer edit form

In my customer edit form, for telephone phone, required field validation is not working when I leave the telephone field blank. The required validation works for every field except for the telephone ...
3
votes
0answers
29 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-...
1
vote
1answer
18 views

While trying to delete address its redirecting to 404 page in Magento 2

When I try to delete additional address in Magento 2 customer dashboard its redirecting to 404 Page. My URL format mentioned below. /customer/address/delete/id/13/form_key/xkTKVSSxqip79bZ1
0
votes
0answers
17 views

update shipping address by AddressId in jQuery Magento 2 [closed]

Update shipping address data by address id , using require Js Magento 2
1
vote
0answers
16 views

Magento 2 Send Admin Customer Registration Email

I'm trying to set up an observer that sends an email to the admin when a user registers on the website. I am following a tutorial but have hit a dead end. The observer is working correctly however I ...
3
votes
1answer
28 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 ...
2
votes
0answers
14 views

How to fix Invalid customer address id in Magento 2.1.5

How to fix Invalid customer address id 1678 etc when trying to add to cart in Magento 2.1.5 It was fixed before by adding a foreign key field to "customer_address_id". After adding the matrixrate ...
0
votes
0answers
26 views

Magento 2: How to load another customer data on checkout instead of current logged in customer via custom module?

I want to show a customers list as dropdown on checkout page and when I change the customer from that dropdown list, All details like shipping addresses, customer detail should be change according to ...
2
votes
2answers
43 views

Add new registration form magento 2

i want to create a new registration form for wholesaler the form should be same as new customer registration form which is provided by magento.when i register wholesaler customer data should be save ...
3
votes
1answer
20 views

How to send Payment Transaction Failed Email copy to customers in Magento 1

There is a setting in Magento Admin > System > Configuration > Checkout (from sales section) > Payment Failed Emails where you can add custom email id to receive it. But I want our customers to ...
2
votes
1answer
37 views

customer first name and last name separately (Magento 2)

I am trying to get First Name and Last Name from the session. But I am not able to get First name or last name. Instead, I am able to get the full name. $objectManager = \Magento\Framework\App\...
3
votes
2answers
25 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
44 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
1answer
35 views

How to show grid with customer and customer's attributes details in magento 2

I wish to show customer name,email and some customer attributes values in a separate grid please provide me a solution, how to replace a below code to show customer and its attribute values. ...
1
vote
1answer
78 views

Magento 2 : Foreign key constraint is incorrectly formed, ALTER TABLE customer_group

After upgrade from magento 2.1.7 to 2.2.3 and am stuck. I have tried everything. In Pdo.php line 235: SQLSTATE[HY000]: General error: 1025 Error on rename of './zwwnzwzjhe/#sql-1bd1_25f9' to ...
2
votes
2answers
43 views

How to restrict customer only to add products in cart Magento 2?

I need to integrate a functionality where when a user clicks add to cart it should check whether he is a logged in customer or not. If he is a logged in customer the product should be added in cart. ...
2
votes
1answer
53 views

Get Product price by customer Group magento 2

I am trying to get Product price by customer group. Used below code. $sku = 123; $customerGroup = $this->getCustomerGroupId(); $currentProduct = $this->loadProduct($sku); $productPrice = $...
6
votes
2answers
243 views

“We can't save the customer” error after Migration - Magento 2.3

I have migrated store from Magento 1.7.0.2 to Magento 2.3. When i Create the customer it shows me error "We can't save the customer." I have checked log file and i can see log, "Class Magento\Eav\...
1
vote
1answer
23 views

How to determine if a customer is new in Magento when using afterSave (or other) Plugin?

What is the best way to identify a new customer when using an afterSave Plugin? Or should I use a different approach to do something with new customers?
2
votes
0answers
18 views

Billing address does not have customer_id

Yesterday a customer called us regarding she could not place an order, but actually, the order has been placed and she was directed to the Review Order page with an error message "We can't place ...
1
vote
1answer
16 views

Get if customer is activated

How can I check if the customer has activated his account on the order success page. Here are some things I've tried: <?php if(Mage::getModel('customer/customer')->getCollection()->...
1
vote
0answers
14 views

How to create custom module with inhertit the Customer registration fields to my module page - Magento 2?

i want to copy the customer registration fields to my custom module page can i copy vendor/module/customer to my module or else how i can inherit to my page Note: All the attributes are ...
2
votes
2answers
20 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 ...
3
votes
2answers
36 views

Remove Addresses tab from customer edit page magento 2

How to remove Addresses tab from customer edit(form) page in admin panel Magento 2?
0
votes
1answer
24 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:...
0
votes
1answer
28 views

Magento 2 Around Plugin get posted form value

I am customizing the address form to add custom arithmetic captcha. We are using ClassyLlama\AvaTax module to validate the customer address in Model File. Now, to validate my custom captcha on server ...
0
votes
2answers
34 views

Password reset updated but still able to login with old password in magento2

I have reset my password. It shows as Password updated. But still i can able to login with old password. Newly updated password is not working. My magento version is 2.2.6. Note: I am using Store ...
1
vote
1answer
43 views

Magento 2 :Get Customer Zip from Checkout Shipping Step

I have a custom module with a custom section in Checkout Payment Step. I want to display the xip code of the customer in the custom section ( both customer logged in and logged out case). I have ...
1
vote
1answer
49 views

Can't save customers after migration Magento 2

After I migrated from Magento 1.9.3.8 to 2.2.5 although I can create new customers I can't edit and save the migrated ones. In admin I get errors that First Name, Last Name and other attributes are ...
1
vote
1answer
20 views

Save customer bank infos, so that they don't have to reenter it on checkout everytime

Our customers are complaining that they can't save their bank infos and so they always have to enter them again if they order something. I know I could just develope an extension so that customers ...
1
vote
0answers
51 views

Klarna Checkout

I am new to Magento and have built a Magento 2 multi-store site which uses the Klarna KCO (Checkout) The checkout works fine except in the following usage: Add product to cart as guest Create new ...
1
vote
0answers
21 views

How can i disable till 1 week next future dates in Magento js Calendar?

I want to allow customer to choose dates after 1 week from current date. Like as today date is 15 Feb 2019 so customer can select dates from 22 feb 2019. I did change js for calendar by adding below ...
2
votes
1answer
59 views

Magento 2.3 How to change the order of customer account form fields with custom module?

I created the module name "Name_Module", Now I want to change the order (position) to " create customer account form fields ". How could I achieve this functionality? Also, need to check if the ...
1
vote
0answers
35 views

How to get custom address attributes in Magento 2

I am trying to display all custom address (Added programmatically) attributes on address add/edit page in My Account section. I have looked into below interface module-customer/Model/Address/...
1
vote
2answers
37 views

Magento2: How to Modify DropDown Country options on the fly?

I need to create a restriction for the Billing [Country_Id] options Based on a new Config. Setting that Pairs a Customer-Segment with specific Billing Country options. I found: vendor/magento/...
0
votes
0answers
19 views

how can i update custom attribute value from customer [duplicate]

i need to update custom customer attribute value programmatically, i tried this: public function userapprove($id){ $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ...
0
votes
0answers
18 views

After registering the customers in the admin is not visible [duplicate]

There are many customers but they are not visible in the admin panel, can help me ?
0
votes
1answer
31 views

Client could see another (very old) client's order?

A client reported that she could see another person's name in the Recently Placed Orders area in her account. That other persons name is from a very old order... Why can that be? Context: we ...
1
vote
2answers
22 views

Custom Customer Attribute not being read from Request

I'm trying to add a new Custom attribute to the Magento customer model, and I think that I've set everything up correctly from what I've been able to scour off of this website & google, but I'm ...
1
vote
0answers
15 views

Magento 2: Importing Customer information shows validation error 1. Please enter a password with a valid length. in row(s)1

I am importing customer information in magento 2 with password 4 characters, I have also changed the password length to 4 in Stores->Configuration->Customer Configuration. But still shows the same ...
0
votes
1answer
15 views

Custom customer logged in redirect in front instead account

I'm making a Facebook connect module. It add a button "facebook connect" in the logged in form and when the user log with it, it send the form with a token added in the fields. To do that i create a ...
0
votes
0answers
40 views

Magento 2 : Rest Api for get customer id with token number

I need customer id and token number when login customer account in Magento2 I used this API for customer login: Method: Post rest/V1/integration/customer/token Body { "username" : "abc@gmail.com"...
0
votes
1answer
43 views

Magento 2 Customer Grid index is locked by another reindex process. Skipping

I am importing Customer Main file details, I imported 30,000 records and about to reindexing ended up with reindexing issue. On the first reindexing I got the following error: PHP Fatal error: ...
1
vote
2answers
212 views

Magento 2. Make Address Fields Not Required at Customer Registration

I have made the Address fields visible for customer registration by creating customer_account_create.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
0answers
25 views

Proper way to set default available options for custom Customer EAV attribute?

I have this basic class that I use in my UpgradeData script class Industry extends AbstractSource { /** * Retrieve All options * * @return array[] */ public function ...
0
votes
0answers
23 views

Open a popup with form on click of link/button on customer edit form at back end Magento 2

I want to add one link/button on customer edit form in admin side in General group. when clicking on that button/link we need to open a popup and show a form with all the admin users with a specific ...