I'm trying to switch to "euro" in magento2 index.php for some visitors, but i didn't find how to set currency, this is my code :

$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$objectManager = $bootstrap->getObjectManager();
$storeManager = $objectManager->create("\Magento\Store\Model\StoreManagerInterface");
$currencyManager = $objectManager->get('Magento\Directory\Model\Currency'); 
  • Did you manage to achieve this? – vitoriodachef Apr 26 '18 at 11:25

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.