on 2024 Jun 08 2:37 AM
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?
Request clarification before answering.
User | Count |
---|---|
19 | |
17 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.