Question

How to get the currency symbol from a product?

  • 9 February 2023
  • 4 replies
  • 903 views

Userlevel 1
Badge +6

We can get the currency code (e.g. EUR) from  product.priceCurrencyCode

but how do we get the currency symbol (e.g. )?


4 replies

Userlevel 5
Badge +9

Hello,

There’s no way to get the currency by itself but the price and introductoryPrice properties contain the currency symbol in the price, e.g. €3.99.

Userlevel 1
Badge +1

+1 To get the CurrencySymbol alone

product.currencySymbol

 

 

Badge +2

+1 To get the CurrencySymbol alone

product.currencySymbol

 

 

I agree with this, getting the currency symbol alone ($) is necessary for me when breaking down a 6 month subscription and displaying the monthly cost of it. 

+1 To get the CurrencySymbol alone

product.currencySymbol

 

 

I agree with this, getting the currency symbol alone ($) is necessary for me when breaking down a 6 month subscription and displaying the monthly cost of it. 

+1

Reply