How To Get Current Store Information Programmatically In Magento 2?
This blog post will help you to retrieve information about your Magento 2 store including store ID, store name, store URL, and store website using 2 different methods Method 1: Using Block Step -1: Create a block file in your custom module app/code/Webiators/CustomChanges/Block/StoreInfo.php Step -2: Create a phtml file in your custom module app/code/Webiators/CustomChanges/view/frontend/templates/storeinfo.phtml Method […]