Questions tagged [customer]

denotes questions related to the customers module

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

unable to load image in pub/media/customer

I have images in pub/media/customer directory but when i tried to access the image by load it using browser, i got file not found response. I have commented this line in nginx.conf.sample #location /...
1
vote
0answers
11 views

Magento 2 Checkout How to identify that customer add new shipping address on checkout?

How to identify that customers add a new shipping address on checkout(if customers do not want that shipping address which showing on checkout page)? After identifying the new address we need to ...
3
votes
3answers
5k 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
0answers
10 views

How to Bulk Delete Spam Customers M2 2.3.5 p1

Just moved over from M1 to M2 (hate it so slow) But during setup I got 100's of spam emails with sex and porn in them. In M1 you could filter on Porn then select and bulk delete no issue. When i try ...
1
vote
0answers
19 views

Magento 2 override admin Controller Address Save.php

How to override admin controller address save.php I am using this code - di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
46 views

Magento 2: How to get customer id

Can any one tell me how can I get the customer id whose order is being created by admin in admin panel, in file /vendor/magento/module-sales/view/adminhtml/templates/order/create/form/account.phtml
1
vote
0answers
19 views

How to unsubscribe customers on mass / bulk in Magento 2.3

We have migrated from M1 to M2, and it appears on M1 we had customers "subscribed" in Magento admin but had subsequently unsubscribed in our email platform. Unfortunately, this had not ...
1
vote
0answers
18 views

Magento 2 : Customer Edit Shows Double Links After Upgrade

After upgrade my magento2 from Magento 2.1.7 to latest version Magento 2.3.5, when I go to admin customer edit page that shows all links double. Does anyone have idea how i can solve this issue.
1
vote
0answers
28 views

How to make checkbox Check/Uncheck onchange trigger event to subscribe/unsubscribe customer from newsletter magento 2 on customer/account?

Basically I have a checkbox on customer/account page adding via code below. app\design\frontend\Company\porto_base_child\Magento_Customer\templates\account\dashboard\info.phtml <div class="...
1
vote
0answers
17 views

Magento 2: Customer dropdown attribute not selecting first option

I have added a new customer attribute which is working fine. The only thing is that I would like it to display the first option selected by default in both admin and frontend side (account create / ...
5
votes
4answers
6k views

How to add a new address (shipping or billing or another) via Magento 2 REST API?

There are API's available to fetch and delete address of a customer but not create a new one. GET /V1/customers/addresses/:addressId GET /V1/customers/me/billingAddress GET /V1/customers/:...
3
votes
1answer
1k views

Customer name is not displayed after login in Magento 2

Customer name is not displayed after successful login in Magento 2. It only displays the default welcome message. Can anyone help me?
1
vote
1answer
27 views

Magento 2 - What is the Event name after customer edit address only

I need to use events 2 places 1 - When customer verified email <event name="controller_action_predispatch_customer_account_confirm"> <observer name="...
1
vote
1answer
23 views

Get custom attribute for customer while creating order in backend magento 2

I have created a custom attribute for customer https://prnt.sc/tb68lv The values are getting saved in the database. i have cross checked it again after opening the customer for edit and the values ...
1
vote
0answers
32 views

Customer Customer attribute not appearing in Create new order in magento 2

I have created a custom attribute for customer https://prnt.sc/tb68lv The values are getting saved in the database. i have cross checked it again after opening the customer for edit and the values ...
0
votes
1answer
14 views

How to change “This is required field” message to field-wise magento 2 customer registration

If I am submitting registration form as blank then all fields are showing an error message: This is required field I want to change this message according to fields. For Example: > > First ...
0
votes
1answer
22 views

getItemCollection() returns null always magento 2.3

i have created an remove wishlist rest api, i am passing customerid & productid to "removeWishlistForCustomer()" but getItemCollection() always returns null, so i can't delete wishlist ...
2
votes
3answers
729 views

How can we get customer orders history with rest API

How can we get the customer order history over the rest API with the customer token. If I'm trying the url /V1/orders?searchCriteria[filter_groups][0][filters][0][field]=customer_email&...
0
votes
3answers
110 views

Magento 2 - Get all rates of customer

How can I get all rates of the customer? For review, I do it like this: public function getReviews($isApproved=false) { if($this->reviewData!=null) return $this->reviewData; $...
1
vote
1answer
21 views

Magento 2: Custom customer attribute not saving on DB

I have added a custom customer attribute on_account. It is displayed as expected in the admin forms: to create a new customer or to edit an existing one, also when creating an Order with a new ...
1
vote
0answers
16 views

Magento 2 - Save data of customer from a form in database

I wish I could create a form with several inputs dedicated to the customer's attributes in my first custom checkout step. This form will have to save the data in the database, in the customer ...
0
votes
1answer
2k views

Magento2 REST API get all customers details

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

Save custom customer attribute value in observer programmatically | Magento 2

I can save custom customer attribute value by frontend controller as: protected $customer; protected $customerFactory; public function __construct( \Magento\Customer\Model\Customer $customer, ...
0
votes
0answers
15 views

magento 2 Customer Address Not Save

Magento 2 customer address not save. When we try to save customer address it save but in customer_address_entity table all field save blank value. Here is a screenshot:
0
votes
0answers
34 views

Load customer by ID in Helper/Class or Model/Class | Magento 2

I can load in controller with: \Magento\Customer\Api\CustomerRepositoryInterface $customerRepositoryInterface, as: $customer = $this->_customerRepositoryInterface->getById(1); and using ...
1
vote
1answer
807 views

Magento global accounts set, but newsletter per storename or storeview - multi-store

Our situation in shorthand: Magento 1.9.x global accounts set, but newsletter per storename or storeview - in multi-store environment. We have encountered some unexpected behavior. Suppose two ...
1
vote
2answers
801 views

How to get information about product in cart

I want to get information about product in cart such as customer_firstname, customer_email. I use this code: $carts = Mage::getModel('checkout/cart')->getQuote(); foreach( $carts->...
3
votes
1answer
835 views

Customer Session

I am using the magento customer session to store some data. I want it to be destroyed when customer logs out. However (customer/session) still persisting the data. One way is I can unset data on log ...
1
vote
0answers
26 views

How to change customer price group on customer account update?

I have a custom customer attribute (registrationcode), on the registration form when the customer gives a code it automatically set the good group price. How to update the group price when the ...
0
votes
1answer
1k views

Hide fields under Account Information on admin page

I'm trying to hide the field "Last Name" from the admin page, but I'm not sure what I need to change since the HTML gets populated from a JS code. I'm trying to do the exact same thing mentioned at ...
0
votes
0answers
32 views

Hide phtml content programmatically in Magento 2

I need to Hide custom button from frontpage checkout page checkout/cart/ programmatically "customer group" based. Location of .phtml file is vendor/module/view/frontend/custom.phtml and ...
0
votes
1answer
19 views

I need to set an activity if the customer is created or updated but it is not working in magento 2.3

events.xml (path : app/code/vendor/module/etc/frontend) <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=&...
5
votes
2answers
6k views

Orders do not show up in customers account until processing state

My customers place orders, and when they go to the My Orders section of their account, the orders do not show up until it has been invoiced and entered a processing state. This is a problem because ...
0
votes
0answers
13 views

Plugin to fire on customer delete

I am trying to write a plugin (interceptor) to fire when a customer is being deleted in Magento 2. Previously I have written a plugin to fire when a new customer is saved. My plugin for saving makes ...
0
votes
0answers
8 views

Magento 2 : Redirect customer to login page on email change

i want to redirect the customer to the login page when email id is changed from edit form ,i did below code Issues : 1: I am not getting redirected to login page, i can see message **Please Login now*...
0
votes
0answers
21 views

magento 2 observer on customer email change

I want to fire observer when customer email is changed, i could not find any event for it. please help with same what i want to is below 1: fire observer on customer update customer details 2: check ...
0
votes
0answers
10 views

Magento 2: customer account edit verification mail

I want to send verification link to customer when he changes his account email from customer dashboard edit account, is there inbuilt feature for same, please help me on way for this. I want once user ...
1
vote
3answers
938 views

Trying to import customer with duplicated email address, (head office and sub branches setup)

I know this is not ideal but I need to try all options before moving on with this so please if you have any positive advice please feel free to drop it in a comment. I know I can disable the ...
71
votes
20answers
79k views

How to check if customer is logged in or not?

How to find if a customer is logged in or not in Magento 2. If the customer is logged in then how to get customer data from a session?
0
votes
1answer
856 views

How to add new customer attribute

I want to add a new attribute for the customers: continent. First of all, I have created a new module for this where I'm inserting this new attribute: <?php $this->addAttribute('customer', '...
0
votes
1answer
1k views

Frontend Invoice Print

Just a question. My frontend button on the customer dashboard to print an invoice prints the page itself and not the PDF of the invoice. Anyone any idea if there is a quick fix or a setting for this? ...
1
vote
1answer
1k 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
50 views

Set “Sales Representative” as custom attribute in Customer - Magento 2

I created a module that save the name of the Admin logged in, into "Sales Representative" column at "sales_order" table. It's working pretty fine. Now i need to save the same value into custom ...
0
votes
2answers
17 views

Magento 2.3 - Login Authentication not working for validating customer email and password

Hi I have created Rest API for customer login with custom module for my Magento 2.3 store. I am entering parameters email and password for customer login. But it throws ...
0
votes
1answer
1k views

Magento - How to restrict customer can buy only one product for specific category

I am trying to add free product for specific category, Customer can add only one free product in the cart for specific category. I tried to add shopping cart price rule as Condition: If total ...
0
votes
2answers
973 views

Customer attribute variable in email

I am using an extension that allows me to add customer attributes to the registration page. Now I want to add the value that the customer fills in as a variable in the email. How do I find out the ...
2
votes
0answers
23 views

Plugin for customer group

if set "Privileged Customers" group for a customer, than ablity to add vouchers for this customer. Otherwise exception should be thrown with the next message "Customer isn't in a privileged group". ...
6
votes
1answer
661 views

Sales flat order: ext_customer_id, ext_order_id

Does anyone know what the purpose is of the order attributes "ext_customer_id" and "ext_order_id"? The Magento code appears to introduce these attributes and they appear on each order, but never ...
2
votes
1answer
29 views

What is the difference between getStoredData and getData?

I'm adding some custom logic in the admin when the customer is saved. I've created an observer on the customer_save_before event. I am using the following code to get the customer: /** @var \Magento\...
2
votes
2answers
1k views

Customer grid “last logged in” column not showing online users

In the customer grid, which is accessable through the main menu point Customers I have a user that has a blank last logged in column. When I look in the details off that user by clicking the edit link ...

1
2 3 4 5
40