QuestionsGet store name in template file magento2
mmWebetutorial Staff asked 6 months ago

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$storemanager = $objectManager->create(‘Magento\Store\Model\StoreManagerInterface’);

echo $storemanager->getStore()->getName();

Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.