Change price calculator

This section explains how to fetch list prices from a ERP system "real-time". If this method is implemented, for each price fetch, the ERP system will be queried. Consider performance considerations if you opt for this method.

To change the price calculator to fetch prices from other system, override the Litium.Products.PriceCalculator.IPriceCalculator.

The IPriceCalculator need implementation to get the prices for variants and also be able to return the pricelists the user can fetch prices from.

If the solution always fetch the prices from ERP system without any price lists in Litium the GetPriceLists method can return empty collection.

 

Is this page helpful?
Thank you for your feedback!