Developer forum

Forum » Ecommerce - Standard features » Formatting values using the API

Formatting values using the API

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a situation where I need to format a value (double) to include Currency information, thousands, and decimal separators.

I have tried using Price.GetDoublePriceFormatted using the currency and Country from context but it always returns the value + VAT.

How can I just format the value without processing it in any way?

Thank you,


Adrian


Replies

 
Anders Ebdrup
Anders Ebdrup
Reply
This post has been marked as an answer

Dear Adrian,

 

To get some inspiration you can have a look at this thread: http://doc.dynamicweb.com/forum/development/development/formatting-with-currencyservice.

 

Best regards, Anders

Votes for this answer: 1
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Anders,

Thank you very much. It worked like a charm!

Adrian

 

You must be logged in to post in the forum