Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
10 votes
1 answer
11k views

Magento 2 Check If Customer is Subscribed to Newsletter

I am developing this custom xml export/import. In magento 2 how can I check if a customer is subscribed to newsletter? Right now I am loading the customer factory. \Magento\Framework\App\...
André Ferraz's user avatar
9 votes
6 answers
13k views

Magento 2 - How to rearrange Customer "My Account" links

Now it looks like this: Account Dashboard Account Information Address Book My Downloadable Products My Orders Newsletter Subscription Billing Agreements My Product Reviews My Wish List I want to ...
Mark's user avatar
  • 1,003
6 votes
4 answers
8k views

Magento 2 : override customer login.phtml file in custom module

I had developed "Hello world" extension in Magento 2. I want to override Customer login form of core files. What is correct way for overriding Customer login form file in Magento 2. I have coded ...
Bharat Desai - Certified Dev's user avatar
4 votes
1 answer
8k views

Magento 2.2: How to completely disable customer login and registration

I have seen plenty of solutions for Magento 1.9, but I have not been able to find any conclusive way of disabling user accounts for Magento 2. I'm developing a custom theme whose parent is Magento/...
Muckee's user avatar
  • 709
2 votes
1 answer
2k 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 ...
Utsav Gupta's user avatar
  • 1,243
2 votes
3 answers
2k views

Magento 2:- How to get customers now online?

Magento 2:- How to get customers now online? Want to get all customers data current login.
Nitesh Kumar  Singh's user avatar
2 votes
2 answers
63 views

Add new API to Magento module

I would like to add new API to Magento Customer module -> AccountManagementInterface. I have created my custom module but I don't know how should my di.xml be written? Thanks~!
Leo Chiu's user avatar
  • 327
2 votes
0 answers
144 views

Do not make Customer Default Shipping Address while creating an Order

When User Go To Checkout Page, And if he has already added the address, I do not want it to be preselected. it always shows unselected. Like This
Xain Ijaz's user avatar
  • 105
2 votes
0 answers
756 views

Magento 2 : Display custom field (customer attribute) in "checkout register" form [duplicate]

I want to add new field (customer custom attribute) to the checkout register form. Items already created: Customer attribute Source model for customer attribute Display field in adminhtml customer ...
MageD's user avatar
  • 107
1 vote
2 answers
714 views

How to override login.phtml in a custom module in magento 2 [duplicate]

How to override customer login.phtml file in custom module, whenever i try it not doing what I expected
Jack Brooks's user avatar
1 vote
1 answer
30 views

Where do you place code that effects ALL Products or Customers in the backend?

Hey everyone I know the title is vague so I will clarify here. I have code that updates Customer attributes and Product attributes. Unfortunately you guys are all going to frown upon me because I run ...
CodingMageSheen's user avatar
1 vote
1 answer
3k views

How to call customer login form in the custom module action magento 2?

I have created my custom module for specific customer group. so, admin will send link to customer to download some matter after login. The login URL and login screen will be different for normal ...
mageDev0688's user avatar
1 vote
0 answers
148 views

Magento 2 add a field to front account information tab

I'm trying to add a custom text field to the edit account information page on frontend customer dashboard, so i tried to create a module like this in VendorName\ModuleName\Setup\InstallData.php ...
tarek fellah's user avatar
1 vote
0 answers
29 views

How to create custom module with inhertit the Customer registration fields to my module page - Magento 2?

i want to copy the customer registration fields to my custom module page can i copy vendor/module/customer to my module or else how i can inherit to my page Note: All the attributes are ...
prabhakaran7's user avatar
  • 1,125
1 vote
1 answer
601 views

How can i run a javascript just one time in phtml in Magento 2

I have a GTM script for login in Magento_Customer/templates/account/dashboard/info.phtml <script> dataLayer.push({ 'events':{ 'event':'login', 'category':'login', '...
Alin Lupoiu's user avatar
  • 2,682
0 votes
2 answers
4k views

M2 Save custom attribute on Customer Group form

I've created a plugin to save an attribute on customer group form. The form input is a multi select, so I added a table field (string) in the customer_group database via updateSchema.php I figured ...
Oscar Azpeitia's user avatar
0 votes
2 answers
4k views

how to show customer attribute in magento 2

I created a new module to add a extra customer attribute.. but it only appear in admin site(customers/all customers/edit/Account information). But i want it into customer registration form... how i ...
user avatar
0 votes
1 answer
3k views

Magento 2 Add Custom Select to Customer : Source Model

I added an attribute to customer entity My goal is to have this attribute as Select (with data from another db table), but i didn't find any tuto about the source/model that i should create !! Here ...
MageD's user avatar
  • 107
0 votes
1 answer
481 views

Magento 2.4 Get tracking Information from order/shipment [closed]

Track My Orders Using Order Status in Magento 2 Pending as Ordered Processing as Accepted Shipping as On It's Way Completed as Delivered
Sai Yugandhar Reddy Alla's user avatar
0 votes
1 answer
5k views

Magento 2 - What is the correct way to remove "Billing Agreements" tab from customer account? [duplicate]

What is the correct and the easiest way to remove the "Billing Agreements" tab from frontend ? The idea is just to hide the link so later if I need I could easily return it back. To do this in ...
Mark's user avatar
  • 1,003