I am trying to show item price with symbol in override email template on order create, and my site have euro and $ both currency.
Is there any way to get
current currency symbol, Please share if have.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
I donot know,what extract you want.
In magento, whenever a system have multiple currencies means system have a base currency and have multiple currencies. And multiple currencies manage via rate,
Then whensoever an order placed at system and then base currency and order place time currency both codes are save at order table
You can find
base currency code from
order time currency code from
Currency code and symbol:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $currencysymbol= $objectManager ->get('Magento\Store\Model\StoreManagerInterface'); $currencyCode = $currencysymbol->getStore()->getCurrentCurrencyCode(); $currency = $objectManager ->create('Magento\Directory\Model\CurrencyFactory') ->create()->load($currencyCode); $currencySymbol= $currency->getCurrencySymbol();
Simple way to get price with currency
$this->helper('Magento\Framework\Pricing\Helper\Data')->currency($price,true,false); //$price is final amount