cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to remove applied promotion and voucher from CartModel(hybris 6.5)

0 Likes
1,004

Hi,

I have a cart which will have applied promotion/voucher. How can I remove the applied promotion/voucher from the cart model. Below is what I have tried but it is not removing. Is there any documentation for the promotionService?

 getPromotionsService().updatePromotions(getPromotionGroups(),
                                             childCart, true,
                                             de.hybris.platform.promotions.jalo.PromotionsManager.AutoApplyMode.APPLY_NONE,
                                             de.hybris.platform.promotions.jalo.PromotionsManager.AutoApplyMode.APPLY_NONE,
                                             getTimeService().getCurrentTime());


Accepted Solutions (0)

Answers (1)

Answers (1)

vinay_malempati
Active Participant
0 Likes

You can release the applied vouchers with the below code. voucherFacade.releaseVoucher(VoucherCode);