Magento 2 Disable Two Factor Authentication Module

From Magento 2.4.x, the 2-factor authentication for the admin is by default enabled. In some situations, if you are not able to set up 2 factor authentication for your admin user then you can not log in to the Magento admin. These situations such as you are setting up Magento 2.4.x in the localhost, or you are creating a new admin user in any server in which emails are not sent, or you do not have access to the email account.

Continue reading “Magento 2 Disable Two Factor Authentication Module”

Magento 2 Disable Input Field of system.xml file

While working on a Magento ecommerce website, you may encounter a situation where you need to disable certain input fields in the system configuration within the Magento 2 admin panel.

This is important to prevent admin users from altering the values of these fields, especially when the values are meant to remain static. Accidental changes to these values can impact the website’s logic, so it’s best to keep these fields read-only in the Magento admin.

Continue reading “Magento 2 Disable Input Field of system.xml file”

How to Call Custom Variables in phtml File in Magento 2

Custom variables are a powerful feature of Magento 2. Each Magento developer is aware of this, but only a few are taking advantage of it. Using Magento 2 Custom Variables, you can display any text and/or HTML from the admin to the front end. Using this website, the admin or merchant can easily update the content of the website without any modification in the code and especially without being dependent on the developer.

Continue reading “How to Call Custom Variables in phtml File in Magento 2”

Magento 2 Get Module Directory Path Programmatically

As per my experience, many times we have to get the location of the module or module directory path while creating the custom module and especially it’s either shipping or payment module. E.g when we wanted to know the exact path of certificate file added to our custom module’s etc folder or .wsdl file of third party module added in our modules.

Continue reading “Magento 2 Get Module Directory Path Programmatically”
Privacy Policy © 2024-2026 Dhairvi Solutions LLP. All Rights Reserved.