Questions tagged [customer]

denotes questions related to the customers module

Filter by
Sorted by
Tagged with
0 votes
2 answers
3k views

Magento 2.3.5 create boolean custom Customer Attribute

I am trying to create a Yes/No attribute for Customer in the admin panel, but its not working. I have tried several available solutions but didn't seem to work. My code is given below. /Setup/...
-1 votes
3 answers
1k views

Magento 2 - How to check if an User is logged in?

I want to check if a user is logged in. Because I need to access customer-specific information. Thanks for your help.
0 votes
3 answers
1k views

How to show customer first name and last name after logged in Magento2.2.5?

I want to show customer first name and last name after logged in Magento2.2.5? As default magento fetches the first name and last name after logged in. In my case, I have removed magento default ...
4 votes
1 answer
1k views

Send personalized email (different template) on customer registration on magento2

Is there a way to send a different email template on customer's registration based on some params (for example the customer gender)? For example: A male customer receive an email (defined in Maketing-...
0 votes
1 answer
1k 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
2 answers
1k views

Magento 2 How to get all customer shipping address

How do get all customer shipping address? Magento 2.3.5-p1 version for the customer table, we can use - customer_entity table name for the customer address table, we can use - customer_address_entity ...
3 votes
1 answer
2k 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
1 answer
2k 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. Does anyone have any idea if there is a quick fix or a setting ...
0 votes
1 answer
3k 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 ...
2 votes
2 answers
2k views

How to assign customer group automatically based on address information

How to assign customer group automatically following by address information When customer register on our website, customer write the country where they live. If customer live in United State, we ...
0 votes
1 answer
9k views

Magento2 REST API get all customers details

public function __construct(\Magento\Framework\App\RequestInterface $request, \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customerFactory ) { $this->...
2 votes
3 answers
7k 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\...
2 votes
2 answers
2k 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?...
2 votes
1 answer
4k views

Magento 2.3.1 : No such entity with customerId = Backend Login as Customer Logs page

My English is not perfect sorry. I am using Magento 2.3.1 and I saw this issue. Admin > Reports > Customers > Login as Customer Logs Login as Customer Logs No such entity with customerId = 1 I added ...
6 votes
3 answers
4k views

How to Get Customer data by telephone number in Magento2?

I have a telephone number which is given in Default address..by using this telephone number i need to get Customer Full data.Data like customer id, customer full name..etc
1 vote
1 answer
2k views

Deleting an address and relationship with customer

When fetching a customer's addresses and deleting them in a foreach loop: $addresses = $customer->getAddresses(); foreach ($addresses as $address) { $address->delete(); } The addresses ...
2 votes
2 answers
1k views

Customers not able to register in magento 2.3.1 with error as "The customer email is missing. Enter and try again"

I am using magento 2.3.1 and i am trying to register customer from frontend and i am getting following error "The customer email is missing. Enter and try again." when i try to check in _beforeSave() ...
2 votes
1 answer
1k views

Magento 2 :Get Customer Zip from Checkout Shipping Step

I have a custom module with a custom section in Checkout Payment Step. I want to display the xip code of the customer in the custom section ( both customer logged in and logged out case). I have ...
0 votes
1 answer
2k views

main.DEBUG: Request validation failed for action ... Invalid request received at Account/CreatePost.php:327 on loop error in debug log

Hey There i have been facing a serious issue in my magento 2.3.7. in my debug.log this error is constantly hitting n filling it in seconds Request validation failed for action "Magento\Customer\...
3 votes
3 answers
2k views

Magento 2 : Customer import not working and gives "Import successfully done"

I have around 1000 customer to import when I try customer import using magento2 default customer import. Validation works perfectly and when I start import it gives me the message "Import successfully ...
0 votes
1 answer
2k 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
1 answer
1k views

How to block specific email address?

How to block specific email address? The customer is registered as guest but making series of suspected fraudulent transactions. We see he is using different credit cards, fictitious address and ...
0 votes
1 answer
2k views

Magento 2 Customer 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
3 answers
2k views

How can i catch customer_save_after_data_object after saving account information in frontend?

How can i catch customer_save_after_data_object after saving account information in frontend?
3 votes
3 answers
1k views

Magento 2 : Remove Top Links When Customer Not Logged In

I would like to remove My Account link from top links, when customer is not logged in. How do I achieve it via XML layout files?
1 vote
1 answer
1k views

Magento 2: Not Able to Login As A Customer

When I'm trying to do is Login As Customer, it gives the below error: a:4:{i:0;s:84:"Invalid method Magento\Framework\Session\Generic\Interceptor::isLoggedIn(Array ( ) )";i:1;s:11155:"#0 D:\wamp\www\...
1 vote
1 answer
2k views

Magento 2 : How to update Quote Customer?

I want to move all cart items of a current customer with another customer(move all cart items to another customer cart items). In other words, I want to share One Customer Cart items with another ...
1 vote
2 answers
2k views

Magento get Customer Data from session id

I've create a login function that make the customer login by email and password and return below response { "status": "success", "message": { "id": "1", "name": "username", ...
1 vote
3 answers
2k views

Mangento check customer if exists

I need to load the customer by using the customer repository to check if this customer is existing I used dependency injection in the controller but it doesn't work. Can anyone help me? Many thanks ...
0 votes
1 answer
2k views

how magento 2 customer password hash decrypt

Hi team is there any way to decrypt customer password hash programmatically If any one knows please help in that tried $objectManager->get(\Magento\Framework\Encryption\EncryptorInterface::class)-&...
1 vote
3 answers
2k views

How to set required Gender field in magento 2

I'm working with magento 2. when i want to set required for Gender field in Admin. It required me to config something.
1 vote
1 answer
2k views

Magento2: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

The above code is written in catalog_product_view.xml in module-catalog. For this block, customer info in the header after login not loading. In console I'm getting this error: SyntaxError: JSON.parse:...
4 votes
2 answers
6k views

Magento 2.2.2 - Display Customer Account header dropdown and remove Sign Out link post login

After successful login, Luma theme shows customer account details in dropdown on header as seen in below image I need to replicate the same in our custom theme which has Blank as its parent. Vendor/...
0 votes
0 answers
33 views

Magento 2 Mailchimp Guest customer fields are not sync on Mailchimp after order placed

Magento 2 Mailchimp Guest customer fields are not synced with Mailchimp after the order is placed. We are using Magento 2.4.5-p1 version and the Mailchimp version is 103.4.50 Except for Guest email ...
3 votes
3 answers
1k views

Only allow 6 digit number as customer password

Is there a way to make magento 2 only allow 6 digit number format as customer password?
0 votes
4 answers
1k views

Magento 1.9 customer can not login after SSL installation

I am using magento 1.9 version for my site. I have installed SSL coupe of days back after that customer are not able to to login to my website. I followed this solutions Can't log into Secure (...
0 votes
1 answer
2k views

Magento 2.4.2 GraphQL not get uid from customerCart and cart query

I installed Magento 2.4.2 According to Magento GraphQL DevDocs updateCartItems mutation cart_item_id is Deprecated. Use cart_item_uid instead. The unique ID assigned when a customer places an item in ...
0 votes
3 answers
3k views

Magento 2.4.4 and PHP 8 "A technical problem with the server created an error." When open any customer

how to fix and how debug the below error. I am getting this issue when I opened any customer it's showing not continuously sometimes it happens. A technical problem with the server created an error. ...
0 votes
2 answers
2k 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
3 answers
2k views

Customer Deleted; Get old Order History back

Customer deleted in Magento from Backend accidentally. Created a new Customer in Magento Backend to recover Customer. But how to add the old Order History? UPDATE sales_flat_order SET customer_id = ...
0 votes
0 answers
18 views

I want to show tier prices to specific customers of Valid Vat ID group magento 2.4.6

I have magento 2.4.6. I have Enabled Automatic Assignment to Customer Group. Group for Valid VAT ID - Domestic is B2B0% (which means 0 tax) Group for Invalid VAT ID- B2B21% (which means 21tax). I have ...
0 votes
1 answer
2k views

Magento 2 customer CAPTCHA Login Not Showing Up

I have added all possible captcha forms in Stores->Configuration->Customers->Customer Configuration->CAPTCHA see screen shoot bellow: Clear cache,flush yet the login page doesn't show it. ...
2 votes
1 answer
1k views

Rest API Acess denied 403 for customers and orders

I am trying to get the products,customers and orders through REST Api. It's working forapi/rest/products getting product collection. But unable fetch the customers api/rest/customers and orders api/...
2 votes
3 answers
5k views

Magento 2 : Redirect on cart page after login

I want to redirect the customer to cart page after login from anywhere ex.login from checkout page or customer account login. Anyone know how to do this? Please help me.
0 votes
1 answer
1k 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['...
0 votes
2 answers
1k views

REST V1/customers adding a new extension attribute Magento 2.3.1

I have added a new field as "is_seller" in registration page (same as "is_subscribed). If the checkbox is clicked the customer Id will be saved to another table with some additional values. It was ...
3 votes
1 answer
2k views

Newsletter subscription at the checkout review

Expected functionality: user checks the "Subscribe" checkbox in the OnePage Checkout's review step and is subscribed to the newsletter. So far I have managed to target the right event (after ...
1 vote
1 answer
91 views

How to get all the customer email using graphQl in magento2

I need all the customer email using graphQl in magento2. Who ever registered in magento those customers email addresses. I need to get from Api. Please help for this
0 votes
4 answers
2k views

How to get all shipping addresses of a customer in magento 2

I want to show all shipping addresses of a customer. I am getting customer_id only. I am using $customer->getAddress() but it's giving all addresses from customer_address_entity table according to ...
1 vote
2 answers
2k views

How to Set Meta description login page

I was woundering if any could help me find a way to set the Meta description for the customer/account/login page? Cant find an xml file where I can change it and not sure how to do it in the login....

1
2 3 4 5
43