I would like to show product price in both base currency & display currency.
I have already enable display currency in frontend - that is i can see "USD / YEN" in header dropdown menu.
For display price with format price, i used this code to handle:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of Object Manager $priceHelper = $objectManager->create('Magento\Framework\Pricing\Helper\Data'); // Instance of Pricing Helper $price = 1000; //Your Price $formattedPrice = $priceHelper->currency($price, true, false);
If i want to show 2 price, one in base currency, one in display currency at the same time, what should be the correct way?