Is there any way for me to mock a ShoppingCart object, like the one on CurrentState?
I want to check if a collection of products is affected by an order discount, but i only want to do it in memory.
Litium version: 6.2.2
Is there any way for me to mock a ShoppingCart object, like the one on CurrentState?
I want to check if a collection of products is affected by an order discount, but i only want to do it in memory.
Litium version: 6.2.2
When you create the CampaignPriceCalculatorArgs
that you are sending into the iCampaignPriceCalculator
you can add an own OrderCarrier
on CampaignPriceCalculatorArgs.OrderCarrier
that will be used during the calculations.