We have a price that is “price without vat”. And that price I need to set with the decimal
So I can use it on items like this Model.CampaignPrice (CampaignPriceItem). But this is a price with vat. So if I want the price without vat I add Model.CampaignPrice.Price (decimal). But then I cant use the logic to get the format set in Litium.
Yes and no. I use the built in to display prices, but they are all with vat. So when I’m displaying it without vat there is no built in method in the accelerator to use the same logic that I use for thoose with vat.
For example:
I write this to get campaign price with vat: @Model.ProductItem.Price.CampaignPrice.FormatPrice() in ProductWithVariants.cshtml
but without vat I need to write @Model.ProductItem.Price.CampaignPrice.FormatPrice.Price but then it becomes an decimal so I can use FormatPrice().
But still, I can use your answer for this anyway! Thank you