Stack Exchange Network

Stack Exchange network consists of 174 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

denotes questions related to the customers module

0
votes
0answers
12 views

Why customer got logged out when saving customer info on Login Plugin/Interceptor?

I'm experiencing a problem when using Magento\Customer\Api\CustomerRepositoryInterface to save customer group. Here is my code in app/code/Vendor/Module/etc/di.xml: <?xml version="1.0" encoding="...
2
votes
1answer
28 views

Magento 2: How to change the error/validation message in the customer login page?

I'm trying to override the error message that shows when a user inserts a wrong password/ wrong email. You did not sign in correctly or your account is temporarily disabled. Where and how i can ...
0
votes
2answers
25 views

Limit customer firstname and lastname in m2

How can we limit the character of first name and last name of customer. For example I want only 30 characters are valid to enter in first & last name. As of now there is no limit on character we ...
1
vote
1answer
28 views

Magento 2.2.5 - Connect register.phtml to the database

At the moment I'm struggling with sending data through my register.phtml. The situation right now is, I've created a module that allows me to override the core register.phtml with my own custom ...
0
votes
0answers
9 views

Magento 2 Jquery Value Not actualy setting in form submit request

I am trying to set 2 values dynamically when a custom field is entered in the custom registration form. Here is my custom js : require(['jquery','mage/url'],function($,urlBuilder) { var ...
0
votes
1answer
27 views

Adding a customers email address to a PDF invoice (Magento V 2.2.6)

Has anyone added a customer email address to the PDF invoice in a recent version of Magento, there is a nice example for an older version from Elgentos here: How do I add a customer's email to ...
0
votes
3answers
48 views

Overriding private method of Model file in Magento 2

I am overriding private method of model file of checkout module below is my di.xml file. <preference for="Magento\Checkout\Model\DefaultConfigProvider" type="Vendor\Module\Model\...
3
votes
3answers
34 views

Magento 2 - Check if user is loggen in header.html [duplicate]

I'm trying to create a piece of code to check if the customer is loggen in or not. I read not to use the objectmanager for that, but I don't know where to put which code. What I need: if customer is ...
1
vote
0answers
28 views

Newsletter subscription problem during registration in magento2

I am getting both subscribe and unsubscribe email once i register the customer with selecting subscribe for newsletter with ticking the checkbox. I am getting both emails one is subscription and ...
2
votes
3answers
47 views

Customer model file override issue in Magento2

I am trying to override customer model file below is the code of my di.xml <preference for = "Magento\Customer\Model\AccountManagement" type = "Vendor\Module\Model\Rewrite\Customer\...
0
votes
0answers
15 views

Magento 2 A customer website ID must be specified when using the website scope Error

I am getting this error while loading customer by mail A customer website ID must be specified when using the website scope. Here is my code: $objectManager = \Magento\Framework\App\ObjectManager::...
0
votes
1answer
26 views

Add link to customer-menu

I need to add a custom link to the dropdown menu : <div class="customer-menu" data-target="dropdown"> How can I do this easily (without using jquery), I need to do it the magento way
0
votes
0answers
17 views

Order Grid is not showing in Customer->Customer Information(Orders) Admin Panel in Magento-2.1?

Order Grid is not showing in Customer->Customer Information(Orders Tab) on admin Panel in Magento-2.1?Please check screenshot https://i.stack.imgur.com/j0kJq.png What is issue in this? Please guide ...
0
votes
0answers
19 views

Individual Prices: 4.000 Customers - 13.000 products. What to do?

Following situation: I will have ~4000-5000 customers and ~13.000 products on a Magento2 shop. Most of the customers have individual prices (on single products, product groups, etc.). The prices are ...
1
vote
1answer
14 views

Insert customer address programmatically weird behaviour

I'm using magento v2.2.5 , i successfully insert customer programmatically and after i finished insert the customer , i tried to insert customer address like this: //load $customer = $this->...
0
votes
0answers
26 views

Magento2: Stop user registration email notification to customer programmatically

I want stop email notification for user registration(createuser) programmatically. We can use plugin, observer, extend createpost controller. Can anyone please suggest which way is standard to do ...
2
votes
1answer
31 views

Magento 2 - Filter in custom grid displayed in customer view admin tab

I have created a custom tab in customer view and loaded grid inside the admin using below link successfully with filter tabs in the grid. http://www.ibnab.com/en/blog/magento-2/magento-2-backend-...
1
vote
1answer
25 views

Magento 2: Safest way to delete spam customers specific date/email using MySQL?

what is the safest way to delete spam customers specific date/email using MySQL? For example delete all customers with email example.com and from 9/15/2018 to 9/28/2018 I cant use back-end UI to ...
0
votes
0answers
16 views

Magento2: Send Reset password link in custom email template

I want to send reset password link to customer in my Custom Module Email template.
1
vote
1answer
9 views

Override value of magento order grid column

I want to show only first name in bill to and ship to magento order grid. app/code/local/Mage/Sales/Model/Resource/Order.php /** * Init virtual grid records for entity * * @return ...
0
votes
3answers
54 views

Magento 2: Get Customer data before login with observer

I want to check customer group around the login process and want to add some custom code over there. Anyone have any idea? Please tell me.
1
vote
2answers
35 views

get customer id by email magento2?

I am using below code to get customer id by email use Magento\Customer\Model\Session; protected $_objectManager; protected $currentCustomer; protected $_customer; protected $_storeManager; ...
0
votes
0answers
17 views

Magento2: Shipping method shows based on customer group

How can I show shipping method based on customer group. I created custom attributive for named retailer_status, (Approve, Reject). Please let me know if anyone has any idea. Like I have enabled Two ...
1
vote
1answer
12 views

Magento Dataflow Advance Profile To Export Customer in Google Contact Format

I have difficulty to find any guide relating to this subject. Basically, I want to export all customer using magento dataflow profile export to csv, in a way so I can just import the csv to the google ...
1
vote
0answers
15 views

Add the field 'Associate to Company' on register form

I would like to add a mandatory field on my register form in front. The field is 'Associate a company' exactly like the field in admin when I want to edit a customer : I checked the 'vendor/magento/...
4
votes
2answers
30 views

Get customer details by using Authentication Token

I use this Magento 2 rest api to get customer token: curl -X POST "https://my.project/rest/V1/integration/customer/token" \ -H "Content-Type:application/json" \ -d "{"username":"me@awesome....
0
votes
1answer
15 views

Magento2: Custom email template from Admin

I am trying to send an email to the customer once it saves from the Admin. I have called my observer "adminhtml_customer_save_after". Observer called but email template not working. my code is below. ...
1
vote
0answers
27 views

Magento 2: Logged-in customer can't place order with new shipping module

The logged-in customer can't place an order with the custom shipping module gives warning msg and can't process due to Please specify a shipping method But the guest user can place an order without ...
2
votes
1answer
31 views

Magento2 - adminhtml_customer not showing in Forms to Use In

I have programatically created a customer attribute and set it to be displayed in adminhtml_customer. All is good, the attribute is being displayed only in the admin customer edit section as desired. ...
0
votes
2answers
30 views

display stock information to logged customer only in Magento 2?

I want to display stock only to logged customers in product page. can you guide me how can I do and in which file?
1
vote
1answer
21 views

Get the date of last purchase of product, by customer

How can I get the last date that a customer has purchased a product? Thank you
3
votes
3answers
67 views

How to display stock information to logged in customer only in Magento 2?

I want to display stock only to logged in customers. can you guide me how can I do?
2
votes
1answer
24 views

Set old quote Magento 2 cart

I'm trying to load/set/restore an old quote from a customer when they log in, but the thing is not that simple, because it turns out that I'm using Cminds Multi User Account Extension, and the project ...
1
vote
1answer
30 views

Magento 2 Enterprise, always get error when save customer

I have problem with my magento enterprise edition v 2.2, when I create customer account in the frontend and backend I always got the error to be like this : when check log file it contain this error ...
2
votes
1answer
37 views

Magento 2 customer login not working on my centos 7 server but works in test server

Magento 2 login is not working as expected on my centos 7 server. If i enter wrong credentials into the login form and hit submit, the page refreshes and the following happens: 1. No error message is ...
1
vote
1answer
34 views

Magento 2 | Should “Guest” customer have a session ID?

I am trying to find out the session Id number. I am using object manager for this (temporarily): <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $...
1
vote
1answer
32 views

Fetch all specific customer's order using Customer token in magento 2 REST API?

I am aware about method using admin token Request type :: GET URL http://<host>/rest/V1/orders ?searchCriteria[filterGroups][][filters][][field]=customer_email &searchCriteria[...
4
votes
1answer
50 views

How to capture the User ID using magento's customer Token?

How do I make a call to that URL that captures the User ID, using Magento customer Token in magento 2 rest API? How Magento 2 makes calls in-between for the APIs ?
4
votes
2answers
173 views

Magento 2 : Unable to set custom customer attributes programmatically

I have a cron job that runs once a day, that reads a file uploaded to the server, and registers users from that file. The code works fine, but now I added a custom attribute to the customer (lets call ...
2
votes
2answers
38 views

Customer custom attribute not being saved

I'm using magento v2.5 and i tried to create customer programmatically from frontend and backend, i share the same code between frontend and backend, after customer being save then i try to save the ...
2
votes
1answer
32 views

Magento 2: How to get Customer collection filter by Full name like admin grid?

How to get Customer collection filter by Full name or by keyword like admin grid of magento 2? Can Anyone help me? Thanks In advance.
3
votes
2answers
133 views

Add custom attribute to customer model - save not working

I need to add a new attribute to the customer model, because I need to save a customer input into the database. I followed the instructions on this answer. app/code/local/Black/Newsletter2Go/etc/...
3
votes
0answers
30 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 ...
1
vote
3answers
39 views

Programatically created user - wrong password when logging in?

I have to make a cron job that once a day creates users from a file on the server. The script works fine, but, the users it generates can't log in (only local for now, not live). Here is the code: $...
2
votes
2answers
26 views

Error at admin customer Form

I was trying to create a customer attribute.I made some mistakes in the code so I got error while editing existing customer and adding new customer.Now I remove the whole module,cleaned cache,run ...
2
votes
1answer
31 views

Remove all customers where * is * programmatically

I want to remove all customers that have the following string in their first name: 'http://' (spam customers that have links in their first names). Is there a good way to remove these ...
1
vote
1answer
30 views

Magento 1.9.3.8 - Customers as “Guest” do not appear in “Manage Customers” on back end

If I generate an order from "logged in" accounts or "creating" an account during the check-out it all works fine, but if I check-out like "guest" the order complete with no problems and I can see it ...
1
vote
0answers
35 views

Magento2: Add date-from validation for dob (date of birth) field in customer creation

I want to limit the dob field in account creation form to be not less than 01/01/1900. I thought 2 way: - limit the calendar widget (but maybe someone could input the date directly) - add a ...
0
votes
2answers
33 views

Customer Object data display issue

I am trying to retrieve customer data with customer Object. Below is the code:- protected $customerRepository; public function __construct( \Magento\Customer\Api\CustomerRepositoryInterface $...
1
vote
1answer
66 views

How to get customer gender options Magento 2

I want to display select input field which contain customer gender options in my custom layout block in magento 2 ? how can i do this? /Vendor/Module/Block/Customer.php public function ...