How to get currency symbol by store Magento 2?

Retrieve Currency symbol for the current store or any specific store currency symbol by store id or name.

Use Interface to fetch symbol Magento\Framework\Pricing\PriceCurrencyInterface with getCurrencySymbol() method.

Base Syntax:

Create Block or Model Class to call function,

Call method,
echo $currencySymbol = $this->getCurrencySymbol();

You can pass the store id, store code as the first parameter in the method or if you have the first parameter with an empty value, the result will be the default store currency code.

Output:
$ (string)

Leave a Reply