Questions tagged [customer]

denotes questions related to the customers module

Filter by
Sorted by
Tagged with
0
votes
2answers
18 views

Filter customer collection by custom attribute in magento 2

I created a custom attribute for customer and would like to filter my collection through it. My UpgradeData: if (version_compare($context->getVersion(), '1.0.6', '<')) { $attributesInfo = ...
1
vote
2answers
25 views

How to get customer id , customer firstname with customer_account_edited event ? Magento2

event.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">...
0
votes
0answers
20 views

How to create an event and observer that will help print a log when admin modifies some customer details?

I want to design an event and an observer that will print a separate log containing the details of the fields that was modified by the admin in admin panel (under all Customers -> edit). How can I ...
1
vote
0answers
28 views

Manage customers in different stores - Magento 2.3.1

I am using 3 stores on my same website, how can I restrict access to customers to different stores? I would like that customers can only buy at a particular store, not at all. It's possible?
0
votes
0answers
20 views

“Last Activity” on customer list dashboard

I would like to view customers' "last activity" on my full customer list but there is no option to include it in the view. But I do note that it is an option on the customers now online report but ...
0
votes
0answers
15 views

magento2 Mysql count number customers who ordered more then once in a specific date range

I have a Magento 2.2.5 based website and I want to get a list of emails of customers who have made more than 2 orders within a specific date range. I know I can do the below MySQL query to list ...
0
votes
2answers
32 views

Is it possible to copy all customer related data migrate to another magento 2 database?

I want to know how I can copy only customer related data to another Magento 2 database If it is possible then what are the tables that I can copy to the second DB Magento ver 2.2.6
1
vote
0answers
28 views

Magento 2 customer export is giving me the error

I added one custom attribute with Yes/No option in customer grid and with that i'm unable to export the customer data, facing issue like below Fatal error: Uncaught Type Error: Argument 2 passed to ...
2
votes
2answers
33 views

Observer to fire on customer login Page Url (baseUrl.“customer/account/login”) magento 2

I want to fire observer on customer login Page url(baseUrl."customer/account/login") magento 2. I tried customer_login event but it's firing after customer login. etc/events.xml <?xml version="...
0
votes
0answers
21 views

How to print custom text in login page ? Magento 2

This code checks whether the customer status is suspended, then the customer cannot log in and returns to the login page, but I need to print his status or any text after or before login form or ...
0
votes
0answers
22 views

How to edit customer information with custom attributes Magento 2

I have created 2 custom attributes and one is a select type so I succeed to make them appear in the form of edit account but when trying to save I get an error and I am stuck there. I also have two ...
0
votes
1answer
25 views

how to add custom attributes in the edit form and then save them

I have created 4 custom attributes attributes and i can see them in the register.phtml and i can create new customers but my question how to show those attributes in the edit account like first and ...
0
votes
0answers
16 views

Magento 2 add custom tab in customer edit section and save data

I am able to add custom tab customer edit section when they click on it i am showing one form by using protected function _prepareForm() { this function form is showing but when i change data in that ...
2
votes
1answer
34 views

how to get a dynamic customer attribute option from eav_atrribute_option _value table in magento 2

how to get a dynamic attribute options from eav_atrribute_option _value table in magento 2 app/code/Cm/CustomerAttribute/Model/Plugin/Checkout/LayoutProcessor.php <?php namespace Cm\...
0
votes
1answer
20 views

magento 2 online customer data not showing

In my instance when I try to check the now online customers the customerid, email and names columns are not showing. Can anyone help me with this
3
votes
0answers
38 views

Magento Customers edit is broken in the backend admin panel

After I updated few security patches in my local Magento 1.9.3.8. PHP 7.o-fpm, nginx server. SUPEE-10888 SUPEEE-10975 SUPEE-11085 SUPEE-11155 So when I was testing all functionalities I saw that ...
0
votes
0answers
31 views

Magento 2 get customer attribute value issue

I am trying to get customer attribute value i have created text attribute and storing json data. {"cloud":["<div><span style=\"font-family:Comic Sans MS,cursive\"><u><span style=\...
0
votes
0answers
16 views

Magento2 : How to configure that one customer can purchase only one product once in website

In my website i have to configure that one customer can purchase a single product and if that customer login again he couldn't able to purchase any product. Is it possible???
0
votes
0answers
25 views

I am getting this error when I click on edit customer in the admin back-end panel

I am getting this error when I click on edit customer in the admin back-end panel
2
votes
1answer
45 views

Magento 2:How to enable google customer review survey email from google merchant center

I am implementing the google customer review on success page. It's working fine. But survey email confirmation is not sending to customer after complete the order. Any suggestions?
0
votes
0answers
24 views

Import customers without e-mail notification?

How can I import all our customers from Magento 1 to Magento 2 without any e-mail notification? Is this possible with the default importer from Magento 2?
0
votes
0answers
10 views

How to add custom address of customer in new order or new shipment email template?

I want to add label before the address fields.I found that currenly customer address is rendered from backend->Configuration->Customers->Customer Configuration->Address Templates. But when i edit it ...
0
votes
0answers
9 views

Validation for new attribute on customer signup controller

I have created new attribute 'customer_interest' and successfully getting it in form, frontend validation is working. Now I need to validate it on backend(php), which file I need to work on? where is ...
3
votes
0answers
22 views

I want to apply a limit for discount amount on checkout

I want to apply a limit for discount amount on checkout. I am providing multiple discount to my customer what I want whenever customer checkout the maximum discount limit will be 50% of the order ...
0
votes
0answers
31 views

In magento2 , how to show dynamically added customer attributes in customer grid?

In magento2 , how to show dynamically added customer attributes in customer grid? I have used this extension dynamic added customer attributes in backend Customer_gitd
5
votes
1answer
34 views

Set custom tab in customer edit page Active

I created a custom tab for customer edit page in backend like this: app/code/Namespace/Module/view/adminhtml/layout/customer_index_edit.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
0answers
18 views

Spam account registrations, limiting characters in database not working

We had a problem of spam account registrations the last year, and the answer to this question worked great Spam customer registrations, CAPTCHA not stopping it, Max field rule being bypassed We ...
0
votes
0answers
15 views

Magento2: How to edit customer links (navigation) [duplicate]

I am trying to find a file that is responsible for links in the client's panel. https://prnt.sc/o2nbni Some links I want to delete/hide from navigation and I wanted to add some of the other elements. ...
0
votes
1answer
39 views

Event “customer_register_success” not working in Magento1.9.2.4

Here is the code- app/etc/modules/Ds_Customerlog.xml - <?xml version="1.0"?> <config> <modules> <Ds_Customerlog> <active>true</active> <...
3
votes
2answers
52 views

Magento 2: Create new customer attribute in module upgrade

I want to add new customer attribute 'business_type' which would be a selectbox. I want to do it in already created module, so I would need module update script. Can anyone help me on this as I am ...
0
votes
1answer
24 views

How to get street address in customer edit form

Currently, I am in the customer address form block \Magento\Customer\Block\Address\Edit $block How to use $block and get the street address of the customer address. I tracked the street address is ...
2
votes
1answer
40 views

How to update the mini-cart proceed to checkout according to customer login in magento 2?

I Want to check the user login status in mini cart and redirect the customer to the login page when click the proceed to checkout button in mini-cart. How to edit the minicart.js file to achieve this?...
0
votes
1answer
52 views

Customer name not appearing and products not showing in mini-cart, Magento 2

I have Magento 2.2.6 version. After signin, customer name is not showing on top dropdown bar, however if I reload the page aur goto another page it then appears. Another issue is that when adding ...
1
vote
1answer
32 views

Event after remove customer Magento2

How to create an event on customer remove from backend.? what is the name of the event? I need to remove customer's data from my custom table after removing a customer from the backend.
1
vote
0answers
25 views

Magento2 - Customer group price not reflect after login

Magento2.1.9 without login when configurable product add to cart, after login with customer not reflecting for customer group price ( tier price) in cart,minicart, checkout section is working fine.
0
votes
1answer
22 views

unable to register new user (ERROR 500 - Internal Server Error!). Magento 1.9

I am working on live site tuxedosonline. its in magento1. My problem is as a guest user i am able to click any link ,categories, or etc. when i am trying to register new user or login with account ...
1
vote
0answers
55 views

Why V1/guest-carts/{cart-Id}/ PUT api is not move guest cart item to customer cart in magento-2.2.7?

I want to move guest cart item into customer cart by using this [PUT] /V1/guest-carts/{cart-Id}/ . But it give {"message": "Cannot assign customer to the given cart. You don't have permission for ...
0
votes
1answer
61 views

Magento 2 getting error “Broken reference: The element with the ”customer“ ID wasn't found. Verify the ID and try again. [] []” in system.log

I am getting lots of Broken reference: The element with the "customer" ID wasn't found. Verify the ID and try again. [] [] errors in the error.log. I've googled around and tried to trace it with ...
1
vote
1answer
19 views

Magento 2 REST API: Custom API with customer_token expecting string[] instead of string

I made an API which returns wishlist of a user using customer_token as authentication, obtained via this API: rest/V1/integration/customer/token My webapi.xml looks something like: <?...
0
votes
0answers
15 views

how i can add option for custom select attribute on customer edit admin page Magento 2?

I want to add a custom option in magento 2 customer edit page admin and how I can save the data when i can save the customer? Any one has an idea I have already tried this answer but showing ...
1
vote
2answers
50 views

Custom Customer attribute not saving Magento 2.3.1

I have the following code to create a custom customer attribute. <?php namespace Vendor\MyModule\Setup\Patch\Data; use Magento\Customer\Model\Customer; use Magento\Customer\Setup\...
0
votes
1answer
37 views

Magento2 Copy Customer name to invoice billing address name

For billing issues i want to use default customer name as same billing address in invoice only. i.e Customer name is John Doe and he use Johny Doe in billing address when he order. it is ok for order ...
0
votes
2answers
90 views

Magento 2 Uncaught Error: Call to undefined method Namespace\Modulename\Mail\Message\Interceptor::setFromAddress()

i am sending an email with attachment from observer(normail mail is going but with attachment it is not working) Namespace/Modulename/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="...
0
votes
0answers
27 views

Magento 2 : Show Customer attributes in separate tab

I have created custom customer attribute and they are showing in account information tab in the admin panel. Now I want to show the custom attributes in a seperate tab.
0
votes
0answers
16 views

how to implement Device id in magento1.9.3 api?

How we can implemented device id with customer id in magento1.9.3(admin and api) please let me know step by step.
2
votes
1answer
24 views

Magento 2 - Share customers but not cart between multiple websites or stores

We have a Magento 2.2.8 multi-store setup with 3 websites. One has 2 stores which allows us to share customers between them. However I don't want to share carts between the stores (different ...
1
vote
1answer
33 views

Magento 2 How to get Customer address after registration?

How to get customer address(company,telephone,country,state,city etc.) after registration in observer? I am using observer. Code - $customer = $observer->getData('customer'); first name and ...
1
vote
1answer
48 views

Remove “add new customer” button in ui component grid with condition base?

I want to remove the "add new customer" button in condition base. "add new customer" button only display for main admin, not any child admin. any have an idea about the same problem. Thank you in ...
0
votes
0answers
16 views

Magento2 SAVE A CUSTOM TAB IN CUSTOMER ADMIN EDIT

I want to create a new tab under "Customers > Edit" grid in the Magento2 admin panel. I followed these tutorials and it worked well but I don't know how to save the new fields which I created. https://...
0
votes
0answers
19 views

We can't share customer accounts globally when the accounts share identical email addresses on more than one website

Does anybody know how to share accounts globally on m2? I understand that there are probably customers that have different accounts on different stores and possibly different addresses and CC's etc ...