how to change price value in expression values to IDR (rupiah)

Hallo... my name is malik form indonesian


i want to ask about change Dollar $ to Rp (IDR)


Thank you

Hi malik, 

You can use Replace() into the expression

Paste this in to your expression - 

Replace(FormatCurrency(GetBiodates.List.Current.Price.Price_Product,Site.Currency, 2, Site.DecimalSeparator,Site.GroupSeparator),"$","Rp")

or this

Replace(DecimalToText(FormatCurrency(GetBiodates.List.Current.Price.Price_Product,Site.Currency, 2, Site.DecimalSeparator,Site.GroupSeparator)),"$","Rp")

Thanks, Aadhavan S

mvp_badge
MVP

Hi,

You either change the site prototype Site.currency if the change should be global, or replace Site.currency in the expression on your screenshot to a site property you create in your own module. Alternatively, but not adviced you can replace the site property in your expression with a string literal like "RP"

Regards,

Daniel

Hi malik, 

You can use Replace() into the expression

Paste this in to your expression - 

Replace(FormatCurrency(GetBiodates.List.Current.Price.Price_Product,Site.Currency, 2, Site.DecimalSeparator,Site.GroupSeparator),"$","Rp")

or this

Replace(DecimalToText(FormatCurrency(GetBiodates.List.Current.Price.Price_Product,Site.Currency, 2, Site.DecimalSeparator,Site.GroupSeparator)),"$","Rp")

Thanks, Aadhavan S

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.