Developer forum

Forum » Development » Price.GetDoublePriceFormatted returns price with VAT

Price.GetDoublePriceFormatted returns price with VAT

Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

Price.GetDoublePriceFormatted does not take into account the ecommerce-setting on the website and always seems to add VAT to the price.

Is it possible to have have this check added to the method?

 

Best regards, Anders


Replies

 
Anders Ebdrup
Anders Ebdrup
Reply

Any thoughts on this one?

 
Nicolai Pedersen
Reply

Hi Anders

No, that is not possible. This is in the 'lower' level API, and website settings is related to rendering of prices. Also this object is in use in places out of context of a pageview and therefore ecommerce settings. You will actually probably see a further seperation in the future on things like this.

Also this formatting is related to the currency being rendered - so it is the settings of the currency that you pass along that decides the formatting.

BR Nicolai

 

You must be logged in to post in the forum