How to enable Login as Customer Settings in Magento 2.4?

From Magento 2.4, New Feature with Out of the box called a login as Customer.

This feature is useful for store administrators only. Store admin can access customer’s order history, check wishlist items, and customer-related information from the frontend by login behalf of the customer when they click on login as the customer button from the admin panel. Continue reading “How to enable Login as Customer Settings in Magento 2.4?”

How to add custom button on sales order view admin page Magento 2?

Add Custom Button on Sales Order View Page on the admin panel toolbar Magento to add extra features to the order view page.

Using Button, You can add URL to redirect to another page with your custom requirement.

To add a custom button, you need to create before plugin for the PushButtons() method from the Magento\Backend\Block\Widget\Button\Toolbar class. Continue reading “How to add custom button on sales order view admin page Magento 2?”

How to check admin user is login in Magento 2?

You can check the Admin user is login or not using Magento 2 with Backend Session class.

Full path:
Magento\Backend\Model\Auth\Session

You need to create an injectable class in the __construct() method to check the admin user is login. Continue reading “How to check admin user is login in Magento 2?”