cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluate promotions without modifying session cart

oscar_san
Explorer
0 Kudos
268

Is there any way to simulate product-level promotion calculation without modifying the session cart?

I'm using a promotion where adding two specific products to the cart grants different percentage discount on every products. If any of these products also have individual promotions, those discounts are applied as well.

I want to get the final price of the products with the promotions applied, but without modifying the actual shopping cart. I tried using a Groovy to create a temporary cart using cartFactory. I then added the products using abstractOrderService.addNewEntry and calculated the cart with calculationService.calculate. However, the promotions are not being evaluated.

Is there a way to achieve this functionality?

Accepted Solutions (0)

Answers (0)