Need to find documentation for adjusting price according to Show prices with VAT
Hi.
Starting with the Razor demo store, I want to display prices including VAT. Unfortunately changing the flag "Show prices with VAT" only switches text between "Inc." and "Exc." below the raw price - i.e. the price is not updated as I would have expected. From searching the web I gather that I need to to build this logic myself.
I have located macroScrips\uCommerce\Product.cshtml and have found this line
var price = CatalogLibrary.CalculatePrice(product);
Apparently price has the type UCommerce.Api.PriceCalculation so I'm looking for some docs to guide me on this object, but I cannot seem to find the namespace UCommerce.Api in http://www.ucommerce.dk/docs/
Need to find documentation for adjusting price according to Show prices with VAT
Hi.
Starting with the Razor demo store, I want to display prices including VAT. Unfortunately changing the flag "Show prices with VAT" only switches text between "Inc." and "Exc." below the raw price - i.e. the price is not updated as I would have expected. From searching the web I gather that I need to to build this logic myself.
I have located macroScrips\uCommerce\Product.cshtml and have found this line
var price = CatalogLibrary.CalculatePrice(product);
Apparently price has the type UCommerce.Api.PriceCalculation so I'm looking for some docs to guide me on this object, but I cannot seem to find the namespace UCommerce.Api in http://www.ucommerce.dk/docs/
Am I looking in the wrong place?
/Jørn
Hi Jørn,
PriceCalculation.YourPrice has an Amount property that you can use instead. It'll reflect the price based on config on the catalog.
is working on a reply...