Skip to main content
Question

How to get the currency symbol from a product?

  • February 9, 2023
  • 4 replies
  • 1899 views

Forum|alt.badge.img+7

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

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

This post has been closed for comments

4 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • February 13, 2023

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.


Forum|alt.badge.img+2
  • Helper
  • June 6, 2023

+1 To get the CurrencySymbol alone

product.currencySymbol

 

 


Forum|alt.badge.img+3
  • New Member
  • September 12, 2023

+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. 


Forum|alt.badge.img+4

+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