Add arguments to GetListPrices in IPriceCalculator

Is there any possibility to add arguments to GetListPrices when extending IPriceCalculator?

The current implementation have calculatorArgs and itemArgs. itemArges is of type PriceCalculatorItemArgs and only have VariantSystemId as Guid and Quantity, but we need the article number for the item.

The reason is that we have some products that doesn’t exist in Litium PIM. To add these products in the cart, we use a dummy article in Litium with the article number “external” and then change the article number to the actual article number. So if we where to use the VariantSystemId, it would point to the “external” product, and we wouldn’t get the actual article number along with it.

Litium version: 7.2.3

Make a class with your custom property that inherits PriceCalculatorItemArgs. Populate and send your custom class into the IPriceCalculator instead of the standard PriceCalculatorItemArgs.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.