Questions tagged [customer]

denotes questions related to the customers module

Filter by
Sorted by
Tagged with
80 votes
22 answers
137k views

How to check if customer is logged in or not?

How to find if a customer is logged in or not in Magento 2. If the customer is logged in then how to get customer data from a session?
Rakesh Jesadiya's user avatar
64 votes
3 answers
69k views

Adding custom attribute to Customer

We need a simple way to add an attribute to a customer record that is not editable by the customer or admin, only programatically. Essentially, we have an ExpressionEngine site coupled with Magento. ...
MB34's user avatar
  • 771
29 votes
6 answers
21k views

Adding columns to customer grid using observer or overriding the customer grid

I am facing an issue of adding a column on customer grid and showing values in that column. Here is the observer code that I have been trying to show the column:- if ($block->getType() == '...
Kuldeep's user avatar
  • 428
17 votes
6 answers
40k views

Magento 2 - Redirect customer to custom page after login

Which class I should override in order to redirect a customer to a specific page after login? I have tried to set Redirect Customer to Account Dashboard after Logging in in the store configuration ...
TFS's user avatar
  • 4,319
4 votes
3 answers
3k views

Login with mobile number on magento-1.9 website

How to login with mobile number in magento-1.9.1.1 without extension? I created The file at app/etc/modules/New_Mage.xml <?xml version="1.0"?> <config> <modules> <...
Teja Bhagavan Kollepara's user avatar
9 votes
2 answers
29k views

Adding custom attribute to customer registration form

I needed to create two new customer attributes. I have followed the guide from: http://www.fontis.com.au/blog/magento/know-more-about-your-customers-adding-custom-signup-attributes to create these ...
user1669256's user avatar
4 votes
4 answers
15k views

Magento 2: How to set Max Length for Street Address?

I would like to set Max Length for Customer's Street Address 1 to 50 Characters & Street Address 2 to 100 Characters. Changes will be applied on Frontend only, where we can find Street Address. ...
Jackson's user avatar
  • 9,909
5 votes
2 answers
11k views

Magento 2 : Is there any way to disable Welcome Email after signup

What is the right approach to disable Welcome Email after completes registration process. I'm using magento2.1. We have an integration with a customer management system and which will sent email to ...
Zacharia SP's user avatar
20 votes
8 answers
84k views

Magento 2 Get customer ID from session in a block class

How to get customer ID from session? I tried this but not work. protected $_customerBonusPointFactory; protected $_customerSession; public function __construct(Session $customerSession, \Magento\...
TFS's user avatar
  • 4,319
12 votes
2 answers
5k views

Is it possible for customers to login with a customer number instead of a email address

I want to create a login page that uses a assigned customer number instead of their email address. The way my business is setup, on a separate eComms platform, they access their account with a ...
Alex W G's user avatar
  • 153
8 votes
2 answers
5k views

Magento 2: Restrict customer registration by specific mail extension

Anyone know how to block customer registration with specific email extension? I am getting so many automated user registrations with [email protected] and [email protected] how to block this type email ...
Riyas Muhammed's user avatar
7 votes
9 answers
11k views

cannot read property 'section loadurl' of undefined

I'm getting this error on the firebug while loading homepage. Due to this error the pages are not loading fully. only the Header, Nav Menu and Footer and showing. The main content sections are not ...
Zammuuz's user avatar
  • 420
4 votes
3 answers
10k views

How to customize the customer registration form? [duplicate]

I want to modify the customer registration form in Magento 1.9. There are two forms both under templates 1. Customer and 2. Persistent. So which template should be modified ? Because I have made ...
Mrunmay Deswandikar's user avatar
15 votes
2 answers
5k views

Autologin on frontend from the backend

See the following scenario. I have some custom module that allows the frontend user to perform some actions on some custom entities. (details are not really important). The request is that an admin ...
Marius's user avatar
  • 198k
8 votes
5 answers
58k views

Magento 2: How to get order information using REST API?

I want to get order,customer information by using REST API. Anyone have idea about this?
BornCoder's user avatar
  • 1,498
7 votes
3 answers
23k views

Magento 2: Get Customer data after login with observer

I need to detect in frontend section for my custom module if customer has just successfully logged in, and i need to run some function before it redirect to another page, is there any way to do this?
Hunter's user avatar
  • 1,484
6 votes
2 answers
5k views

How can I issue store credits in Magento CE?

I want to know, is there anyway that customers can have funds added to an account balance and then use their balance for shopping? Don’t need buy coupon, gift or some things like these… I want they ...
sIiiS's user avatar
  • 632
0 votes
2 answers
13k views

Magento 2 : After login need to redirect on same page instead of customer Dashboard

After login redirect user on previous page from front-end. I am using the login pop-up and all default functionality. Also the Admin configuration Redirect Customer to Account is set as No. But it ...
Ashish Jagnani's user avatar
10 votes
2 answers
4k views

What does the Customer is_active flag do?

During a discussion today I was informed that the Customer is_active flag doesn't actually do anything. This is a unique flag, like the customer email address, in that it's not an EAV attribute. ...
Ryre's user avatar
  • 1,147
10 votes
5 answers
18k views

Redirect user after login

I wanted to redirect user to "Home" page instead of "My Account" page after login, and i was successful to achieve this making use of <customer_login> event. But I was also redirected to ...
Trimantra Software Solution's user avatar
9 votes
4 answers
15k views

magento2 check if customer is logged in or not in knockout template

How do I check if customer is logged in or not in knockout template? my template <!-- ko if: customer().firstname --> <!-- /ko --> my js define( [ 'ko', 'jquery', ...
Nagendra Kodi'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
2 answers
9k views

Magento 2: How to get order from Customer Id

I'm learning Magento 2 and got a headache while trying to find how to get all orders from customer. With Magento 1.x, we can get all orders from customer with the below code. $yourCustomerId = '123123'...
Toan Nguyen's user avatar
  • 3,049
1 vote
1 answer
945 views

How to set sendPasswordResetConfirmationEmail Template seperate for when group id 4 using module

How to send separate Email template (customer_password_forgot_email_template) when user Group id=4 using module extend Mage_Customer_Model_Customer. class Creative_Login_Model_Customer ...
Ravikumar Patel's user avatar
39 votes
11 answers
63k views

How to Remove Customer Account Dashboard Links

I want to remove following links in the customer account dashboard left panel? My Applications Gift Registry Reward Points Gift Card Link I'm working in the Magento 1.7 Community Edition. Any ...
Oshan's user avatar
  • 1,952
16 votes
3 answers
10k views

How to show address fields in register

I have tried to do it in register.phtml, but it did't working for me. I can't find local.xml file too. How i can enable it? This is really important thing in my shop.
Yardi's user avatar
  • 293
11 votes
6 answers
29k views

Magento 2 customer-data.js:90:23 [object Object]

I'm using Magento 2.2 with Porto theme and getting an [object Object] javascript error at customer-data.js line 90 in the console after logging into the store and refreshing the page or switching to ...
Lez's user avatar
  • 2,907
10 votes
3 answers
7k views

Event/Observer for customer password change?

I'm looking for a way to hook into the event of customers changing their passwords. So if someone changes the password in the customer frontend, I'd like to send an e-mail somewhere. I did consult ...
oschloebe's user avatar
  • 926
9 votes
2 answers
12k views

Magento 2 - Change customer password programmatically

I have build a plugin on the authenticate() method in Magento\Customer\Model\AccountManagement with beforeAuthenticate(). It is working and I can change the firstname of something else of the ...
Evrijn's user avatar
  • 320
7 votes
6 answers
30k views

Magento 2: Save custom customer attribute value programmatically

How can I save a custom Customer Attribute value programmatically? I have tried below code but it didn't work. protected $customer; public function __construct( \Magento\Customer\Model\Customer $...
Dinesh Yadav's user avatar
  • 6,447
6 votes
2 answers
585 views

Customer Associated with the Admin Store

Is there a use case for associating a customer with the admin store in Magento's backend? Or is this one of those UI bugs that's never been fixed? When you create a customer object via the Customers ...
Alana Storm's user avatar
  • 44.4k
6 votes
4 answers
5k views

Update customer gender translations

I would like to translate the gender options for a customer. At first I thought that I could simply use a translation file for this, but looking into the template app/design/frontend/base/default/...
David Manners's user avatar
5 votes
2 answers
14k views

How to increase customer session time

How can I increase the amount of time a customer gets to shop in a store? My login/ cart clears after 10 minutes.
Matthew McLennan's user avatar
4 votes
1 answer
8k views

How to add programmatically product to wishlist in Magento 2?

I want to add the product to the wishlist in magento2. What is the way to programmatically add the product into wishlist in Magento2?
Manish's user avatar
  • 3,106
4 votes
2 answers
13k views

Get all abandoned carts in Magento

How could I get all the abandoned carts with customer's email (programatically)? What does Magento consider as being abandoned? Not updated in the last day?
Dan Ovidiu Boncut's user avatar
3 votes
5 answers
5k views

Magento Customer Grid - Last Order Date

I'm trying to add some extra columns into Magento's customer grid. I've got an order count working successfully (Total amount of orders a customer has placed) I'm trying to get the Last Order date in,...
Christopher Thrower's user avatar
3 votes
1 answer
8k views

How to generate random password for new customer while creating account in magento?

I dont want my customer to enter password while creating account in magento.When customer creates account password should be auto generated and mail should be sent to that customer .Can anybody help ...
saniya's user avatar
  • 79
3 votes
1 answer
3k views

guest to customer

My main question is to convert guest to customer Here is the case: Assumption: a guest placed an order, he successfully paid for that, when he is on the success page then I want to ask him Do you ...
Sree's user avatar
  • 65
2 votes
3 answers
3k views

Customer Order mail not sending

Customer not get any mail for Order success . But get new user registration mail on Magento-1.9.1.1 I already set Store email as 01. System ==> configuration ==> Store Email Addresses All as: ...
matinict's user avatar
  • 1,549
2 votes
2 answers
3k views

Custom Attribute Not saved in Checkout Register Form - Magento

I need to add two fields for Customer in customer's registration. I managed to do it and its working fine for customer registration. But it is not getting saved in case of onepage checkout (if ...
androidjunky's user avatar
1 vote
2 answers
496 views

How to change price when customer group get change from my account

I need to know how we can achieve this when the user changes its group to another customer group that has a different price. This is working when the user logout and gets login again but I want to ...
Nilesh Dubey's user avatar
  • 1,087
20 votes
1 answer
39k views

Magento2 : Best way to load Customer by customer Id

What is the best way to load Customer by Id? using customer interface or customer factory or another way ? In most of solutions I found, it is done by directly using objectManager (which should be ...
Vishwas Bhatnagar's user avatar
20 votes
6 answers
21k views

Magento 2: How to show address field in registration form?

I want to display address fields (to save in default billing address) in customer registration form. I know how to do in Magento 1. But I'm struck with Magento 2. Have anybody done this before ..? ...
Elavarasan's user avatar
12 votes
2 answers
15k views

How can i get customer data from observer after successful login?

I have made a custom module in which I have an observer file. I need to display all information about the logged in user.
user2656802's user avatar
12 votes
3 answers
25k views

Customer Can't log in

I just migrated my website. But I got a problem. My customers can't log in to their account. When click log in on log-in page. http://www.mywebsite.com/customer/account/login/ It should be log in on ...
Nattapong Lip Kiatmongkollert's user avatar
10 votes
1 answer
11k views

Magento 2 Check If Customer is Subscribed to Newsletter

I am developing this custom xml export/import. In magento 2 how can I check if a customer is subscribed to newsletter? Right now I am loading the customer factory. \Magento\Framework\App\...
André Ferraz's user avatar
9 votes
2 answers
8k views

customer session does not work except customer page - Magento 2

app/code/Vendore/Module/Block <?php namespace Vendor\Module\Block; class CustomerLink extends \Magento\Framework\View\Element\Template { protected $_customersession; public function ...
Bilal Usean's user avatar
  • 9,977
8 votes
2 answers
4k views

Is there any way to set different theme depends on customer group?

I want to show different theme depends on customer group.Is there any way to set different theme dynamically? For Eg.: Theme A for General customer group and Theme B for Wholesale customer group. ...
Bijal Bhavsar's user avatar
7 votes
6 answers
27k views

Set value to created customer custom attribute in magento 2

I have created custom attribute for customer using below code. setup/installData.php class InstallData implements InstallDataInterface { const LEGALITY_DOCUMENT_1 = 'user_legality_document_1'; ...
Developer Webile's user avatar
7 votes
6 answers
14k views

“We can't save the customer” Alert on Magento 2

In Magento 2, on the `registration.HTML file, I have enabled the address fields. But when I try to create or register a new customer, it shows "We can't save the customer". Can anyone tell ...
Lokranjan Varshney's user avatar

1
2 3 4 5