Get store code value from current store programmatically in Magento 2.

You can get the current store’s, store code value in Magento 2.

You need to use Magento\Store\Model\StoreManagerInterface interface for fetching current store locale.

I have given a demo using Block Class, Continue reading “Get store code value from current store programmatically in Magento 2.”

Create Customer Address Programmatically in Magento 2.

You can create Customer address using Programmatically for any existing customer in Magento.

For Create Customer address, you must have a customer created in Magento store. Based on existing customer id, We can create customer address programmatically. Continue reading “Create Customer Address Programmatically in Magento 2.”

How to get Current Admin User roles name and email id in Magento 2?

This blog post is used for
You can get a first name, last name, and email of current admin user roles by calling User module’s Collection class.

You can fetch current user data by below code snippet, Continue reading “How to get Current Admin User roles name and email id in Magento 2?”