Questions tagged [customer]

denotes questions related to the customers module

669 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
2k views

No such entity with cartId = 0 on checkout page

Magento2 - Customer lost session occasionally on checkout page. After login when I go to checkout page it's shows me below error but after refresh 4 to 5 times customer session restore again but ...
Ronak's user avatar
  • 797
6 votes
1 answer
1k views

Magento 2 :- How can i add tab in customer group?

I tried to create new tabs as per the customer tab, add in admin side, but I am getting the error so can any one help me. How can i do this thing? I refer this link for that 1) http://www.dckap.com/...
Kushal Dani's user avatar
  • 2,114
6 votes
3 answers
4k views

How to Get Customer data by telephone number in Magento2?

I have a telephone number which is given in Default address..by using this telephone number i need to get Customer Full data.Data like customer id, customer full name..etc
user3374995's user avatar
5 votes
0 answers
1k views

How to add filtering to custom table field column in Customers admin grid in Magento2?

Added custom columns from custom table to Customers grid using JOIN in the following method: \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection::_beforeLoad: protected function ...
andrss's user avatar
  • 81
4 votes
0 answers
180 views

Custom additional custom address attributes not getting saved

I have created two custom address attribute latitude and longitude in custom address and they are showing fine in backend. However when I am creating a new customer from backend filling some value to ...
Goutam's user avatar
  • 101
4 votes
1 answer
328 views

How get customers that didn't bought in last X months in Magento?

I want to get customers list that didn't bought in last X months in magento 1 or 2? Like: Last 12 months Last 9 months Last 20 months Last 36 months
Chandra Kumar's user avatar
4 votes
0 answers
2k views

Magento 2.2.1 Bug price by customer group not working after add to cart

Magento 2.2.1 Bug price by customer group not working after add-to-cart I have set product price based on customer group so if wholesalecustomer is logged in then price will be 20$ and the general ...
jack's user avatar
  • 920
4 votes
2 answers
6k views

Magento 2.2.2 - Display Customer Account header dropdown and remove Sign Out link post login

After successful login, Luma theme shows customer account details in dropdown on header as seen in below image I need to replicate the same in our custom theme which has Blank as its parent. Vendor/...
Slimshadddyyy's user avatar
4 votes
0 answers
55 views

Magento 2 : There is Different Class for When User Logs Out Due to Inactivity

I need to redirect customer to a different URL when is logged out automaticly. I made a prefence for Magento\Customer\Controller\Account\Logout but it looks like, when the customer is logged out due ...
Gianni Di Falco's user avatar
4 votes
0 answers
739 views

Magento2 : how to set per website is_required custom attribute for account creation form

I have Magento2 multiple websites. I already added some custom attributes for the customer entity, and I wonder if it's possible to set the is_required field per website. For example, I have an ...
eInyzant's user avatar
  • 321
4 votes
0 answers
305 views

Magento 2 : Email on customer Import

I have to import customers from Magento import customer feature and at the time of import there should be the email sent to customer and template should be registered_no_password so customer can set ...
Tejas's user avatar
  • 86
4 votes
1 answer
1k views

Send personalized email (different template) on customer registration on magento2

Is there a way to send a different email template on customer's registration based on some params (for example the customer gender)? For example: A male customer receive an email (defined in Maketing-...
daniele andreoli's user avatar
4 votes
0 answers
1k views

Default Billing Address not saved when user having no address and do checkout In Magento 2

I need help to save the default shipping address as Default Billing address. Steps to follow : Register as a new customer Now add product into cart Go to Checkout and fill Shipping Address Place an ...
Salma Saiyad's user avatar
  • 1,214
4 votes
5 answers
832 views

Magento 2 "All Customers" page does not work

Why doesn't load this page? What is wrong?
Riccardo Amadio's user avatar
3 votes
1 answer
1k views

Magento-2 How to show reset password options to first login customer

I have imported customer recently. customer imported by default password which I have set same password for all customer. Now I need two things to do for customer. How I can get customer login count, ...
Suresh Chikani's user avatar
3 votes
0 answers
3k views

Magento 2: Custom Conditions Rule in Custom Module Validation

I have created a custom module contain two sections: The first section contains title(text Field),icon(Uploader) and custom dropdown ,the second section contains conditions rule. In this module was ...
mahmoudismail's user avatar
3 votes
0 answers
1k views

Magento 2 customer data migration & volume check failed?

I would like to migrate only customers data using magento2 data migration tool. Can anyone suggest how to resolve the below error when migrating data [2019-08-06 12:20:19][INFO][mode: data][stage: ...
Nagaraju Kasa's user avatar
3 votes
0 answers
97 views

Magento Customers edit is broken in the backend admin panel

After I updated few security patches in my local Magento 1.9.3.8. PHP 7.o-fpm, nginx server. SUPEE-10888 SUPEEE-10975 SUPEE-11085 SUPEE-11155 So when I was testing all functionalities I saw that when ...
Mr F8's user avatar
  • 77
3 votes
0 answers
50 views

I want to apply a limit for discount amount on checkout

I want to apply a limit for discount amount on checkout. I am providing multiple discount to my customer what I want whenever customer checkout the maximum discount limit will be 50% of the order ...
Vipin 's user avatar
  • 31
3 votes
0 answers
147 views

Spam account registrations, limiting characters in database not working

We had a problem of spam account registrations the last year, and the answer to this question worked great Spam customer registrations, CAPTCHA not stopping it, Max field rule being bypassed We ...
PaddyD's user avatar
  • 369
3 votes
2 answers
699 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-...
fernandus's user avatar
  • 484
3 votes
1 answer
1k 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 ...
Kade's user avatar
  • 31
3 votes
0 answers
659 views

Magento 2 Knockout Js Customer Name update issue after changing customer name

I am having strange issue. In header, along with Welcome message i am showing Customer full name. For that i am using knockout.js concept. <?php if($block->customerLoggedIn()): ?> <li ...
jack's user avatar
  • 920
3 votes
1 answer
2k views

customer_visitor magento 2.1.5 errors : 1205 Lock wait timeout exceeded; try restarting transaction

I am getting below error every nigth at 00:00. Problem with clean customer visitor. How i can a:4:{i:0;s:198:"SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting ...
omelandr's user avatar
  • 1,267
3 votes
3 answers
1k views

Only allow 6 digit number as customer password

Is there a way to make magento 2 only allow 6 digit number format as customer password?
Idham Choudry's user avatar
3 votes
1 answer
489 views

How to check if phone number already exist?

Is there a way to validate a phone number has already been used by customer programmatically?
simple guy's user avatar
  • 2,484
3 votes
1 answer
2k views

Newsletter subscription at the checkout review

Expected functionality: user checks the "Subscribe" checkbox in the OnePage Checkout's review step and is subscribed to the newsletter. So far I have managed to target the right event (after ...
Domas's user avatar
  • 115
3 votes
0 answers
774 views

One customer with multiple customer groups Magento 2

Does anyone know how to apply multiple groups for one single customer? I have seen one result for Magento 1.8 but it doesn't work. I have changed the DB to multiselect and not static value (varchar) ...
Paola's user avatar
  • 31
3 votes
0 answers
2k views

Magento 2 - Display eav attribute in customer grid (explanation & questions)

So where should I begin. In the last couple of days i've been working on showing custom attributes in the customer grid. There a couple of thing i would like to discuss since I don't really know the ...
Wokkel's user avatar
  • 181
3 votes
0 answers
930 views

How to send invoice mail automatically when invoice is created on Magento 2

What i tried to do, is to send invoice mail automatically to the customer when I successfully created an invoice. By default the invoice mail in send just when i checked the Email Copy Invoice and ...
Alin Lupoiu's user avatar
  • 2,662
3 votes
1 answer
88 views

M1 import orders disable all emails

We're working on importing orders from a legacy system into a Magento 1.9.2.3 store. We have a script that creates the customer if he doesn't exist and creates the order. We want to make ...
Haim's user avatar
  • 2,144
3 votes
3 answers
1k views

Magento 2 : Remove Top Links When Customer Not Logged In

I would like to remove My Account link from top links, when customer is not logged in. How do I achieve it via XML layout files?
giani.sim's user avatar
  • 1,473
3 votes
2 answers
419 views

Remove all buttons from customer edit page in adminpanel magento 2

I want remove all buttons from customer edit page in adminpanel in magento 2
Nimmagadda Sankarshana's user avatar
3 votes
0 answers
501 views

Magento 2: Customer session not getting on enabling cache in backend

This is my XML file. <referenceBlock name="category.products.list"> <action method="setTemplate"> <argument name="template" xsi:type="string" cacheable="false">Company_Module::...
Vindhuja's user avatar
  • 1,395
3 votes
1 answer
359 views

Send email from observer using smtp on magento 2

I have this observer, and now i send emails via php mail() function, but i want to use the SMTP. Can anyone tell me which steep i need to follow? public function sendNotification($to,$subject,$...
Alin Lupoiu's user avatar
  • 2,662
3 votes
0 answers
427 views

Can't getCustomer isLoggedIn magento2?

I try get custommer is login. it not success. this is my code protected $_customerSession; public function __construct( ... \Magento\Customer\Model\Session $customerSession, .... ){ ... $this->...
xanka's user avatar
  • 2,114
3 votes
2 answers
228 views

Confused by multiple, conflicting 'Last Logged In' Stats

This is an example of a customer page on the backed. It shows two fields, 'Last Logged In:" and "Last Logged In(America/Los_Angeles):", which is the home timezone of the store. I am confused at what ...
The_DemoCorgin's user avatar
3 votes
1 answer
1k views

Customer Session

I am using the Magento customer session to store some data. I want it to be destroyed when a customer logs out. However (customer/session) still persisting the data. One way is I can unset data on the ...
Krish's user avatar
  • 141
3 votes
4 answers
915 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?
mighty_hk's user avatar
  • 693
3 votes
1 answer
1k views

Add customer custom attribute to customer grid for searching and filtering

I have Magento 2.1.3 and have added a custom field in to the admin area of customers which works nicely, however I am now trying to add that field to the customer grid view in the admin area so we can ...
Richard Laws's user avatar
2 votes
1 answer
150 views

Magento2: How to get customer zip code based on the customer location (Guest Users)

I would like to get the customer zip code based on the customer location (Guest Users) Please let me know if anyone has an idea how to get it done. Thank You
Suresh Chikani's user avatar
2 votes
0 answers
55 views

Country Code Required - Magento 2.4.3

On one of our websites, we have issues after they have created the account they need to add the home address and shipping address to their account. When they do so they get "Country code is ...
Jan-petter Havna's user avatar
2 votes
0 answers
511 views

Magento 2 Customer API Token refresh

I am developing an APP based on magento 2 ecommerce. As any APP, the user should never logged out. I can get with magento 2 a token for any customer by that token have an expery time. I know that I ...
martin's user avatar
  • 49
2 votes
2 answers
553 views

Magento 2 - Create customer programmatically from order

What is most optimized way to create customer programmatically from order ? As i need to create customer for a guest user, what will be the better way of implementing it ?
Hamendra Sunthwal's user avatar
2 votes
0 answers
169 views

magento 2.3.3 customer loggin issue quote table is_active?

Magento 2.3.3 customer login issue quote table is_active? When there is more than 1 data in the quote table with is_active = 1 then the user is facing login issues. So I have to change is_active to 0 ...
Roshan Rakesh Yadav's user avatar
2 votes
0 answers
451 views

Magento 2 Show Login Popup [ Guest Checkout is disable ] Even Customer Already Login

We set guest checkout disable to show login popup at cart when customer click on process to checkout. But the problem is when customer is already login then also login popup show at cart page when ...
Chirag Gondaliya's user avatar
2 votes
0 answers
267 views

How to unsubscribe customers on mass / bulk in Magento 2.3

We have migrated from M1 to M2, and it appears on M1 we had customers "subscribed" in Magento admin but had subsequently unsubscribed in our email platform. Unfortunately, this had not ...
Jeff's user avatar
  • 121
2 votes
0 answers
34 views

Plugin for customer group

if set "Privileged Customers" group for a customer, than ablity to add vouchers for this customer. Otherwise exception should be thrown with the next message "Customer isn't in a privileged group". ...
Andrey Smolin's user avatar
2 votes
0 answers
35 views

Magento 2 I want my clothing size to be remembered across for the session

A selected size filter in layered navigation on a category page must be remembered and reapplied automatically when again visiting that category or any other category in that session.
Smith David's user avatar
2 votes
1 answer
282 views

What is the difference between getStoredData and getData?

I'm adding some custom logic in the admin when the customer is saved. I've created an observer on the customer_save_before event. I am using the following code to get the customer: /** @var \Magento\...
Radu's user avatar
  • 460

1
2 3 4 5
14