How to override order info.phtml template in Magento 2?

Order/info.phtml file display all the order information regarding the order.

If you need to override the info template with your module or theme level, you can do it with ease.

Template declaration will be found from the Block class, Magento\Sales\Block\Order\Info with protected $_template variable. Continue reading “How to override order info.phtml template in Magento 2?”

How to get Admin session lifetime value in Magento 2?

Retrieve the admin session lifetime value in Magento 2 using Programmatic way with ConfigInterface.

From Admin Panel, You can get the value from Stores -> Configuration -> Admin -> Security -> Admin Session Lifetime (seconds). Continue reading “How to get Admin session lifetime value in 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?”