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

1
vote
1answer
18 views

Magento 2 How to get customer collection from website id?

I want to get collection for customer website wise. I have website id, now i want all the customers which belongs tho particular website id. I am trying here : using \Magento\Customer\Model\...
0
votes
1answer
24 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
11 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
0answers
12 views

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

I am using helper data function to add new address in 'customer_address_entity' but it is not working. code as below : namespace Name\Module\Helper; use \Magento\Framework\App\Helper\...
0
votes
1answer
14 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
29 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
15 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
37 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
8 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
26 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
10 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
21 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
40 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
29 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
7 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
36 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
33 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
12 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
22 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
27 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() { $...
0
votes
1answer
37 views

Change of customer login error message magento2

I am trying login with invalid customer email address, that doesn't exist in magento db. When i try to login with that email. I am getting error like "You did not sign in correctly or your account ...
0
votes
1answer
35 views

Customer login error magento2

I have used reset password and changed the password. When try to login with the new password i changed from the forgot password link. Getting below error. You did not sign in correctly or your ...
0
votes
0answers
28 views

Magento 2.2.x - How to create customer radio and checkbox button attribute

want to show radio button and checkbox in customer registration page and admin panel... I need exactly radio button and checkbox... But most of the friends mentioned in his/her blog on 'input'=>'...
0
votes
1answer
24 views

How to access the details of a logged in user

Our Society wishes to have some web pages outside Magento (1.9) but on the same web server and to control access to those pages according to the credentials of a person logged in to Magento. ...
0
votes
0answers
22 views

Cannot export list of customer from the grid magento 2

when trying to export the list of customers i get this error Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must ...
0
votes
0answers
55 views

Can not login with customer emai1 in magento2

I am getting below error in my log file when try to login. main.CRITICAL: No such entity with customerId = [] [] Tried below solution that didn't work. Magento 2 - Moving site - 'No such ...
0
votes
0answers
22 views

Magento 2: Add new attribute to customer [duplicate]

I want to add a new customer attribute document. How could I do this?
0
votes
0answers
46 views

Custom customer attribute on customer grid

I'm using Magento 1.9.3.2 So I created a custom extension that added an attribute for my customers. Everything is working fine except for the fact that I want to display that custom attribute on the ...
0
votes
0answers
19 views

Magento 2.1 option value always select as No in admin panel

I am using amitshree account approval module in magento 2.1. See below link: https://github.com/amitshree/magento2-account-approval Module working properly but in admin panel even after approve ...
0
votes
0answers
47 views

Magento 2 Cusomer and Order Migration Mismatch of entities in the document: sales_order_grid

I've migrated the customers&Orders from Magento 1.9.0.1 Version to Magento 2.2.6 Version so that I have implemented migration-tool. in in my config.xml, I have the following code config.xml <...
0
votes
1answer
41 views

Order Repository save not working

I am trying to associate orders and customer using the following code. $order = $this->orderRepo->get($oid); $order->setCustomerId($newCustomer->getId()); $order->setCustomerIsGuest(0);...
0
votes
0answers
16 views

Magento 2.25 customer and order migration Mismatch of entities in the document

I've migrating Customer and Order from Magento 1.9.0.1 to Magento 2.2.5 version, for the Customer and Order migration I've reviewed the following post and implemented in my local. How to migrate only ...
0
votes
0answers
13 views

Grid showing a loader continouisly and a popup something went wrong

I created 2 sub menu under All customer and i created two grids the first for customers that belong to group1 and the second for customers that belong to group 2 but still don(t know how to filter the ...
0
votes
0answers
17 views

Password reset tokens doesn't work behind load balancer

I am trying to share a site between two servers behind a load balancer. When I enable both web servers I have a small issue which is that password reset's don't work half the time. After some testing ...
0
votes
0answers
19 views

Custom validation customer telephone in registration, edit and checkout

I have to add a particular Regex to validate the customer phone number both in the frontend (via the validated js) and the backend side. I do not understand what is the most correct way to add a ...
0
votes
0answers
36 views

Magento2 : Unable to save Billing & Shipping Address of customer from admin

while save new address from admin address are not save got an error like this please check following image. Thanks
0
votes
1answer
21 views

Remove all Customer related pages

I would like to remove all customer related pages. I have already removed all links like login / register, but the pages are still accessible via the url (so people with basic Magento 2 knowledge can ...
1
vote
0answers
62 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 ...
2
votes
4answers
148 views

Fatal error: Uncaught TypeError: Argument 1 passed to __construct() must be of the type array, null give

Urgent help needed! After migrating data from M1 to M2 (Magento v2.2.5) using UB Data Migration Pro, when I click edit to any Customer at the Magento 2 Admin Panel, I get these error messages: ...
1
vote
0answers
17 views

Magento 2. Log Out the Customer from all other machines

The customer should be logged out from all other machines at login. Is this something that Magento offers? How would I achieve this? Some pointers where to start from | Where to look. I'm not ...
1
vote
1answer
45 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 ...
0
votes
1answer
34 views

Passing variables to static block in magento2

I have used below code in magento1 to load the static block with custom variables. Here is the code of my m1 Block file. { $customer = Mage::getSingleton('customer/session')->getCustomer(); ...
0
votes
0answers
17 views

call an action in a form inside phtml magento 2

I created a new form registration for customer under my theme/magento_Customer then i created a new module and i created a new function in the block calling the new action but when inspecting the ...
0
votes
0answers
21 views

Show hide tax based on customer group magento2

Is it possible to show/hide tax for specific customer group? Or show prices with tax and without tax based on customer group in magento2
0
votes
1answer
46 views

create a customer programmatically magento 2

How to create a new customer programmatically? i want to set new custom attributes and set the group id according to some condition but i don't know what to put here : setFirstname($POST['...
2
votes
1answer
52 views

How to get order list of customer using graphql?

How to get order list of customer using graphql. I have below code to get order list using graphql but can't get it. schema.graphqls type Query { salesOrder ( customer_id: Int @doc(...
0
votes
1answer
17 views

Two different form registration

I created under my theme/Magento_Customer/templates/form:register.phtml and register2.phtml and i put this in customer_account_create under mytheme/Magento_Customer/layout, and i created a module to ...
0
votes
0answers
11 views

Trigger on Database of Magento for Customers

I want to activate a customer automatically when you register. for that I created a trigger in the BD of magento. I just want to update the Null value the last record that was added. Is the trigger ...