Hi Dynamicweb,
I need to display my unit prices with 5 decimals but all other prices should be displayed with 2 decimals. I have tried this in my cartline templateextender:
var rounding = new Rounding();
rounding.Decimals = 5;
var currencyWithFullDecimals = new Currency(base.OrderLine.Price.Currency.Code);
currencyWithFullDecimals.RoundingId = "tmp";
currencyWithFullDecimals.Rounding = rounding;
msrpUnitPriceWithoutVATPriceInfo.Currency = currencyWithFullDecimals;
Ecommerce.Frontend.Renderer.RenderPriceInfo(msrpUnitPriceWithoutVATPriceInfo, template,
"Smartpage:SpMsrpUnitPrice");
But it seems like I cannot runtime overrule a rounding on a currency, as this is cached. Do anyone have an idea of a workaround to overrule roundings for specific prices while still using the default setup?
Best regards, Anders
