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

Questions tagged [customer]

denotes questions related to the customers module

0
votes
0answers
8 views

Magento 2 How can we assign customers to admin users?

I want the functionality to assign particular customers, order, products to the particular admin user, It means each admin can see the customer, product, order, etc, Which is assigned to him. Let ...
0
votes
1answer
15 views

Magento 2. Where in the database is the number of customer reset password attempts

A customer can reset his password. Magento tracks this password reset requests. Where in the DB is this information stored?
0
votes
2answers
12 views

How to get all Invoices of logged in customers in magento 2.1

I want to display the list of invoices of logged in customer in the frontend.
0
votes
0answers
13 views

Search product show after customer login in Magento 2

Search product show after customer login in Magento 2. Without login no product views to customer on search in website and it redirected on customer login
0
votes
0answers
25 views

Magento 1.9.3 Customer Login Internal Server Error

After some reports of customers, I found a strange behavior. These customers receive an internal server error page while accessing their account. I found that these errors in the server's errror_log: ...
0
votes
1answer
14 views

In Magento 2.2.5, Login link is displaying even customer loggedIn

In Magento 2.2.5, I am checking the customer is logged in or not in order to display the login link in case if he is not logged in. If he is logged In means I need to display the My Account link. ...
0
votes
0answers
9 views

Magento2 multi website / store - Admin created customers are redirected to wrong store after password create & login

This is a Magento CE 2.2.5 project We've found bug, reported here https://github.com/magento/magento2/issues/20148 Steps to reproduce Create new customer in admin with associated website / store ...
0
votes
1answer
21 views

How one user can access two different websites with automatic login to both different instance Magento 2?

I have two different instances for Magento 2. If the user is logged in on Site1 and access it, then after the user goes to the Site2 then it should automatically be logged in for Site2. I need that ...
0
votes
0answers
23 views

How we can save the newsletter to true for customer on checkout page in Magento 2?

I have created a Js component in which i am showing a checkbox of Register for Newsletter.It is showing above shipping form that is correct. What i want that when i will check this checkbox then it ...
0
votes
1answer
15 views

magento 2 how to create a store and store view in customer_save_after_data_object observer?

create the observer sucessfully the add the create store code but there is an error "Something went wrong while saving the customer." the code is given below- namespace Namespace\Modulename\...
0
votes
0answers
14 views

“Custom Attribute” is a required field Error Message - Custom customer Attribute on register user

Hello I added an custom customer attribute "kndnumber" to my register page. Attribute is successfully created in DB. My Problem is when I submit the user register request the error Messsage "...
0
votes
2answers
17 views

Magento 2 - InstallData script doesn´t add column to my 'customer_entitiy'

I´m now trying to add a custom attribute for like 5 hours now. It drives me nuts that I dont find the solution hope you can help me. I want a custom attribute to be displayed and saved when the user ...
1
vote
2answers
39 views

Get Customer Details by Wishlist Product Id in Magento 2

A list of products was added to wish-list by the number of customers and I need to know that which customer was added a particular product to the wish-list, based on the product id. I need to get the ...
0
votes
1answer
36 views

Magento 2 : How to get order collection group by customer?

To get order collection by customer wise i.e.., customer A and customer B have placed order and it should retrieve by customer wise per collection? public function getOrdersByCustomer() { $...
0
votes
1answer
30 views

Magento2 REST API get all customers details

public function __construct(\Magento\Framework\App\RequestInterface $request, \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customerFactory ) { $this->...
0
votes
0answers
23 views

magento 2 logout customer after successful registration works only first time

I have implemented this logic to logout customer after registration, Its only working before logging in a new user. After clearing cache and when I register a user it logout the user and for second ...
0
votes
2answers
52 views

magento 2 logout customer after successful registration

I need to logout the user after successful registration. How can I achieve this, Is there a admin settings in backend to do this.
1
vote
2answers
27 views

Magento 2 How to upgrade existing custom customer address attribute?

I have created a module, which creates one custom customer address attribute. In my attribute I have visible true, Now I need to visible false. I need to update that attribute. My code is as below: ...
0
votes
0answers
14 views

Magento 2 : filter customer collection containing chinese firstname

I want to filter customer collection based on firstname containing chinese characters. In MySQL I can do it using the following: SELECT `e`.* FROM `customer_entity` AS `e` WHERE (HEX(`e`.`firstname`) ...
1
vote
0answers
21 views

Why reset the customer session data when FPC is enabled?

Regarding this article from @SohelRana what is the business or technical decision to empty the customer session data when FPC is enable?
0
votes
1answer
21 views

Customer Register Page Validate min 1 Char to 10 Charcters - Magento 2

I am trying to Change Validation in customer Registration page for first name and last name. I know i can do this by setting maxlimit by overriding core template in theme folder. vendor/magento/...
0
votes
2answers
24 views

Update field on `customer_entity` table

I created a new field on customer_entity table. $setup->getConnection()->addColumn( $setup->getTable('customer_entity'), 'profession', [ '...
1
vote
0answers
32 views

Magento 2 How to disable price from orders, customer account and order view if custom module is enabled?

I have created one module which has admin side configuration to enable/disable the module. Now I want to hide the prices from "orders, customer account, and order view ". Means I want to hide the ...
1
vote
0answers
25 views

How to rebuild Magento 1.3.2.4 corrupted database ready for migration to Magento 2.3.0

We have an existing old live Magento 1.3.2.4 website (which is completely backed up). We have built a new Magento 2.3.0 website which is ready to go live, but just needs the old Magento 1.3.2.4 data ...
0
votes
1answer
42 views

1.9 - Customers getting password link expired - no customer ID in URL

My customers have recently started getting the "Your password link has expired." message upon clicking the reset link in their email. The settings are correct, I have expiration links set to expire ...
0
votes
1answer
22 views

Assign guest order to customer Magento 1.9

I want to assign a quest order to a customer, using a custom script. I tried the following, do not get any error, but it is not assigned. What am I missing? CODE: <?php ini_set('display_errors',...
0
votes
1answer
26 views

Magento 2 How can i add BCC to order email with observer programatically?

I have created module and wrote one an observer on "order_place_after", here i want to send the same order email copy to my custom email address. How can i send the same order email to my custom ...
1
vote
0answers
26 views

Validation customer address attribute in Backend and Frontend server side

I should create a server side validation for a customer_address attribute in both the backend and the frontend. I do not use overwrite the model and the validadateData() method associated to the ...
1
vote
1answer
47 views

Magento 2 How to get customer collection from website id?

I want to get collection for customer website wise. I have a website id, and now I want all the customers which belong to that particular website id. I am trying here: using \Magento\Customer\Model\...
0
votes
2answers
51 views

Magento 2 How to add custom attribute to customer address and how to insert value in that attribute?

I want to add a new custom attribute to "customer_address" that I did with an attribute installer script, now I am able to see that field in "eav_attribute" table. I have created a module and I have ...
1
vote
1answer
26 views

`upgradeData` to add a custom customer attribute is not working in `Magento2`

I've created few customer attribute using upgradeData.php. The content of the upgradeData.php is as below, <?php namespace Ucs\CustomerAttribute\Setup; use Magento\Customer\Model\Customer; use ...
0
votes
1answer
24 views

Magento 2 How to add new address in 'customer_address_entity' from helper?

I am using helper data function to add the new address in customer_address_entity but it is not working. code as below : <?php namespace Name\Module\Helper; use \Magento\Framework\App\Helper\...
0
votes
1answer
16 views

Magento 2 How to get custom field name 'location_id' aded to “customer_address_entity” at frontend, on order place after observer?

I have create one module which add 'location_id' in 'customer_address_entity' table. I also create one observer which called when order placed. Here i got the address id from order, Now i want to ...
0
votes
1answer
44 views

Magento 2 How to add custom field in customer_address_entity table? which will not use for front end or back end

I want to add one custom field in "customer_address_entity" table, for custom module. I have custom module installed. I am trying with "InstallData" script to add custom field. I do not want to show ...
0
votes
1answer
17 views

Customer in more than customer group

One customer asked me, if it's possible to add a customer in more than one customer group. He wants to give his customers a discount which is manufacturer based. Example: Customer 1 get a discount ...
0
votes
0answers
9 views

While editing the customer in backend throws exception in magento 2

I am trying to edit the customer in backend, while clicking edit it thows the below exception Please provide me a solution. Thanks in advance
0
votes
3answers
74 views

Magento 2 How to override Magento\Customer\Block\Address\Book block in my custom module?

I want to override block Magento\Customer\Block\Address\Book in my custom module. And need to add a new function which returns module status enable/disable, which is defined in the model class. I need ...
0
votes
0answers
9 views

Restrict add to cart visibility according to group magento 2

I have two catalog and two group when a customer that belong to group 1 is connecting he can just see add to cart of catalog 1 and same for a customer that belong to group 2 he can just see add to ...
0
votes
1answer
29 views

Magento 2 How to use model function in phtml file When override phtml?

I want to override book.phtml file from my module and want to check if my module is enabled or not. if module is enabled then need to hide links and button from that phtml. I have module function as ...
0
votes
0answers
12 views

Custom sort by functionality in custom module

I need custom "sort by functionality" for customer. I have a list of customer showing in forntend account dashboard , in that i need to implement "sort by functionality" (like sort by or sort by email ...
1
vote
2answers
26 views

Magento 2 how to disable 'add new address' button from customer address book page, in account section?

I want to disable 'add new address' button from customer account address book and customer account section with checking if my custom module is - enable/disable. file name is : vendor\magento\module-...
2
votes
1answer
57 views

Magento 2 Create observer on customer create, with custom module

I want to create an observer in my custom module which called when new customer create and delete. In my custom module i want to add custom data when customer created and delete custom data when ...
0
votes
1answer
34 views

Get Customer ID in template file

I'm building a module where it needs the Customer ID to filter some data in a table. I currently have my Block class set up like this: namespace TreyBake\Garage\Block; use Magento\Framework\View\...
0
votes
0answers
12 views

Magento 2.2.4 - Set first field of street on address readonly but on the second no

I'm starting in the magento now and I've modified some simple things but I'm spending too much time leaving the first street field in the address book as readonly, it would have to be only the first ...
0
votes
0answers
44 views

Customer redirect issue with login post plugin magento2

I have used two plugins to use the referral url's for customer login page. here is the code of my etc/di.xml <type name="Magento\Customer\Controller\Account\LoginPost"> <plugin ...
0
votes
0answers
18 views

Magento 1.9.3.1 customer login issue?

In Magento 1.9.3.1 customer is not able to login .Added the form key in login.phtml file and changed the Admin>System>configuration>General>Web>Session Cookie Management values also.But its not able ...
0
votes
1answer
35 views

magento2- Not able to get details of logged in customer.

I have tried to obtain the logged in customer details by using all the below models. Nothing seems to work. Are there any other ways to obtain the user data? \Magento\Backend\Model\Auth\Session ...
0
votes
1answer
13 views

Order Virtual products as guest

In one of the shops I develop, the whole login system is disabled (customers are not able to register or login, and there is no dashboard). This works perfectly fine for simple, grouped or ...
1
vote
0answers
26 views

MAGENTO 2 Customer grid backend “no such entity” issue

after deleting a store in my Magento 2, if I go to the customer page I find the error "No Such Entity". On the DB there are all and even changing the website_id, store_id and created_in I do not solve ...
0
votes
1answer
28 views

Maganto 2 | Does guest customer Id exists ? if yes how can we get through Order collection or some other way?

I am getting guest customer Collection with: \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory as: public function getGuestOrderCollection() { $...