0

I have below code (which is at .phtml page) which echo store view selected and i want to take that value which is echo by below code and display it in an html page. please help how to do that. thanks.

<?php
    $ObjectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $storeManager = $ObjectManager->get('\Magento\Store\Model\StoreManagerInterface');

    $selectedStore = $storeManager->getStore()->getName();
?>
2
  • you can a phtml file in html using layout. if you can write your html code in phtml file and call this phtml file in your html
    – Mehran
    May 13 at 9:33
  • How can i get those result in html using layout? @Mehran May 13 at 9:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.