The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [customer]

denotes questions related to the customers module

Filter by
Sorted by
Tagged with
2
votes
1answer
22 views

Magento2.3.1 How to add customer grid mass action link reset forget password and custom reset forget email sent to customer

I am using Magneto 2.3.1 and how to add customer mass-action inside link add reset forget password and when select customer sent to email for customer, but email not use in default Magento our custom ...
0
votes
0answers
18 views

How can I get the customer increment ID in an observer in Magento2 if using the human friendly ID

I am trying to get a magento customer increment ID. I'm thinking I have to use the resource-model class just not sure what the best way to access it is or how to get it. public function __construct( ...
0
votes
0answers
8 views

Firefox TypeError: options is undefined in customer-data.js with Weltpixel pearl theme 1.5.5

Getting TypeError: options is undefined in customer-data.js with firefox, With chrome it's working good no issue. Using Magento 2.2.0 & Wetpixel pearl theme1.5.5 This issue is not coming for all ...
0
votes
0answers
15 views

Add new validation rule to firstname input magento 2 customer create page

I created custom Javascript file and included in my theme. Content Of JS File: require([ 'jquery', 'mage/mage', 'jquery/validate', 'mage/translate' ], function(jQuery){ let ...
1
vote
0answers
16 views

Send email to particular store customer in multi store website in Magento 2

Guy's I have a multi-store website in Magento 2.2.5, in one admin side manage 7 to 8 store, so I have to install Trustpilot review extention in one store. But when I send customer invitation mail to ...
0
votes
0answers
20 views

Is it possible to sort Email order confirmation by SKU

My website is on MAGENTO 2 Any time that a customer send an order I received an email confirmation with SKU, DESCRIPTION, PRICE. But I need that this email report is sorted by SKU. is it possible? is ...
0
votes
1answer
36 views

Magento 2 Create order from admin user using rest API

I want to create orders from admin on behalf of a customer by using REST API. I have created cart and added items by using the below code. $userData = array("username" => "admin", "password" =>...
0
votes
0answers
18 views

How to show order status in Myaccount page?

I want to show the order status in MyAccount page when the customer login into Magento? Is it possible to show them?
0
votes
0answers
6 views

how to auto-create customer after checkout in magento 2 code and files?

I need that button "place order" after checkout create new customer from guest on first checkout page with a password which will be generated by the code. "place & order" send email to new ...
1
vote
1answer
28 views

I have many spam customer in Magento 1.9 so how can i remove?

Guy's I have a Magento 1.9 site and some days ago I check my admin side so found lot's of spam customer so I can add google Recaptcha at that time. But it already has many customers are in site so ...
0
votes
0answers
6 views

Session unsetting itself every time I navigate away from a page

I need to be able to store some custom session variables that exist for the custom, regardless of whether they're signed in or not, but for some reason my sessions keep deleting themselves. I have ...
1
vote
0answers
25 views

how to insert custom customers attributes in orders and emails

I have successfully created custom customer attributes in Magento 2.3.2 (like doctor name and doctor zipcode) and I can see/modify them in my adminhtml customer view. What I would like is to have them ...
0
votes
1answer
10 views

Magento2 : Set Customer Custom Attribute Value Using Rest API

Property "Mobilenumber" does not have accessor method "getMobilenumber" in class "Magento\Customer\Api\Data\CustomerInterface". Whenever i am trying to set customer custom attribute value i am ...
0
votes
1answer
14 views

Magento2 How to get customer billing agreement by entity_id

How to get customer billing agreement data. I can't find a table in the database. can someone guide me to get data or query?
0
votes
1answer
25 views

Old order email send to admin user Magento 1.9?

If it is possible to send the old order mail again send to the admin user. order mail functionality is now working correctly but I have sent old order mail again. So please anyone tell how to do it ...
0
votes
0answers
10 views

Magento 2 : How to make attribute readolny in customer edit mode from backend?

I want to make customer email attribute readonly while edit customer from backend. How can this achieve ?
0
votes
1answer
17 views

Data from the default shipping address in customer grid

Magento OOTB is displaying data from default billing address in customer grid. I need data from default shipping address instead of billing. I made changes in indexer.xml <?xml version="1.0"?> &...
2
votes
2answers
38 views

How can i configure customer Middle Name/Initial as a required field in Magento 1.9?

If it is possible Customer Middle Name/Initial is required, Now I use this code to required this field but can not work <?php if ($this->showMiddlename()): ?> <?php $isMiddlenameRequired ...
1
vote
1answer
29 views

Importing Customer Record via Customer ID

I'm working on a project at the moment and the client requires the import/export of customer records to/from their CRM. I've imported a fair few successfully however I've found something else that I ...
0
votes
1answer
24 views

What is the event that will fire after assigning customer to group in Magento?

I have to fire an observer method when the admin assign customer(s) to group on adminhtml. Can you help me which event is it? I tried adminhtml_customer_save_after but it didn't worked. Edit: My ...
0
votes
1answer
14 views

Magento 2 - How to register New Customer from REST API

I am new to REST Api, I am working on to create customer account via using Rest API but struggling with one error which I am trying to find I authorized account properly but when I try to create new ...
0
votes
1answer
23 views

How to auto subscribe customer in registration process?

There is a code for checked newsletter subscription in Magento 2 registration page like below. Even if I click on the checkbox and register the newsletter subscription is not working as shown below.
1
vote
2answers
27 views

Magento 2 - read and write new customer attribute

I added a new customer attribute n2gEmails: app/code/Fekete/Newsletter2Go/etc/extension_attributes.xml: <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
1
vote
0answers
23 views

How to change authenticate method: Magento 2

I have create my NewLoginPost Controller action with extends LoginPost in the execute function i call to authenticate method where i pass (email, password). $customer = $this->...
0
votes
0answers
12 views

Unable to define customer flat columns using source entity

I'm trying to create a customer EAV which is always either 0 or 1, never null. The main issue I'm having is forcing the column in the customer_grid_flat table to be not nullable. $customerSetup->...
0
votes
0answers
31 views

Magento 2 - Move Sign Out link at the last position in customer menu dropdown

I want to move authorization-link at the last position in customer menu. How can I achieve that? UPDATE: Code from xml <referenceBlock name="top.links"> <referenceBlock name="...
0
votes
1answer
41 views

Magento 2: How to group and make new sections in customer attributes in Account Information Tab?

I want to sort and group Customer Attributes in back-office view. There is no problem with sorting but how can I group it? There is no Attribute Set/Groups like for product attributes. I want to make ...
0
votes
0answers
9 views

How to get customer default shipping and billing address data (i am after country and postcode)

I have customer ID - Not sure how to grab the default shipping/billing address. I can get the current shipping address and billing address but not the default. Is there any way I could get the default ...
1
vote
2answers
50 views

You did not sign in correctly or your account is temporarily disabled:customer login

When I try to load /rest/v1/integration/customer/token, passing username and password in the body, it shows below error: { "message": "You did not sign in correctly or your account is ...
1
vote
1answer
15 views

Magento2 : How To Solve $(…).down(…) is undefined error in admin

Does anyone know how i can solve this error?
0
votes
0answers
34 views

Magento 2 A customer with the same email already exists in an associated website error

I'm stuck in a weird problem. Everytime I try to create an account and add an address to that account programmatically I get an error called A customer with the same email already exists in an ...
0
votes
1answer
31 views

Magento 2 how to get customer data in Observer in customer_account_edited event?

I'm trying to get customer Id, first name, last name , email and Address info after customer_account_edited event is triggered, but I'm getting error 500 and the error is Uncaught Error: Call to a ...
1
vote
2answers
80 views

Magento2: How to restrict customer to require login for add to cart in whole website?

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. ...
0
votes
1answer
24 views

How to set up pay pal express checkout without customer login in magento 1.9

if it possible to Paypal express checkout work without a customer login. Now it is redirected to the login page but I have no requirement to the customer login so how can I have done it?
0
votes
1answer
35 views

Magento1: add extra 2 field to customer registration for fronted ,admin , and database

I followed several tutorials like https://marketplace.magento.com/ followed the step but no luck for me. how to add 2 extra field in customer or user registration for frontend ,admin and database . ...
0
votes
0answers
20 views

When customer placed order in magento1 so his account is deactivated

if it is possible to the customer account is deactivated when he placed the order. So how can i change Magento admin panel in customer is active attribute by default value is YES but when customer ...
0
votes
0answers
20 views

Delete/Deactive customer account after customer placed order in magento 1

It is possible to customer account delete or deactivate after customer placed the order otherwise deactivate after some certain amount of the time has passed.
0
votes
1answer
24 views

Magento 1.9: Force Customer to login to access the homepage and other page

If customer open site then login page show but if the customer enters login details then show the homepage and other product page and catalog page. I have added this code in index.php and 1cloumn....
0
votes
3answers
70 views

how to override magento customer module JS files in magento 2

I need to override the following file vendor/magento/module-customer/view/frontend/web/js/model/customer-addresses.js define([ 'jquery', 'ko', './customer/address' ], function ($, ko, ...
0
votes
1answer
43 views

After M1 to M2 customer migration by command “customer:hash:upgrade”, got an error: Fatal error: Uncaught TypeError: explode()

After converted M1 customer to M2 format, run php bin/magento customer:hash:upgrade, got an error: Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given in /vendor/...
0
votes
2answers
40 views

REST V1/customers adding a new extension attribute Magento 2.3.1

I have added a new field as "is_seller" in registration page (same as "is_subscribed). If the checkbox is clicked the customer Id will be saved to another table with some additional values. It was ...
0
votes
0answers
33 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 ...
0
votes
0answers
17 views

Add customer to multiple customer group magento2.1

I set group with eav_attribute group_id to multi-select and set it to varchar. But it doesn't show multi select. I want to set my customer to multiple customer groups in magento2.1
0
votes
1answer
26 views

Magento2: Create customers programmatically and associate to multiple websites

I have written a customer import which works just fine. Now the requirement has changed .. the Magento instance runs now multiple stores / websites and i need to change the customer import so that the ...
0
votes
2answers
96 views

What event should I use for Customer delete observer in Magento 2.3?

I'm very new to Magento 2.3, so I can't find a list of all the events that are related to user accounts. I need to create observers for user deleted, user updated (any information in account) and user ...
-1
votes
3answers
174 views

Magento 2 - How to check if an User is logged in?

I want to check if a user is logged in. Because I need to access customer-specific information. Thanks for your help.
0
votes
0answers
30 views

region is a required field on login page magento 2

The region is a required field on login page Magento 2 When the customer tries to log in on-site its throw region is a required field error.
0
votes
3answers
31 views

Know if user are logged in with Jquery

I'm doing a custom JS code but i wanna know if user are logged in with Jquery.
3
votes
6answers
109 views

Magento 2.3: How can I get the customer ID with PHP?

I am trying to get the items of the cart as well as the customer ID in my Module. But the problem is that I don't know how to get the customer ID properly. In the Moment I have this Code and it works:...
0
votes
1answer
47 views

Magento 2 : Separate home page for logged in and guest user [closed]

I want to show different home page for logged in user, Which event/plugin I can use for this ? Whenever logged in customer clicks on homepage he should be redirected to different url Logged-in ...