We can get the currency code (e.g. EUR) from product.priceCurrencyCode
but how do we get the currency symbol (e.g. €)?
We can get the currency code (e.g. EUR) from product.priceCurrencyCode
but how do we get the currency symbol (e.g. €)?
+1 To get the CurrencySymbol alone
product.currencySymbol
+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.
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.
+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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.