cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to updatePromotions

amigley_bastardo
Explorer
0 Kudos

Hi, I have an incidence similar to that previously reported, but it is not the same

I am trying to update the promotions of a cart (I do not know if it is correct) ... in doing so, it generates the exception: Failed to updatePromotions Java.lang.IllegalArgumentException: Unit must not be 'null'

Here's the line: promotionsService.updatePromotions(promotionGroups, cart, false, PromotionsManager.AutoApplyMode.APPLY_ALL, PromotionsManager.AutoApplyMode.APPLY_ALL, new Date());

However, I see that when I turn the cart in order, the promotions are updated.

What is the right thing to do?

Regards! Amy

Add comment · Share

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Failed to updatePromotions Java.lang.IllegalArgumentException: Unit must not be 'null' :

If your Promotion is Order Free gift promotion - Make sure your free gift type (Size/Style/Appareal) Product is having unit as "pieces" in Backoffice/hmc.

amigley_bastardo
Explorer
0 Kudos

Tks Khaha!

But, I am adding to the cll the promotions of each product. The cart has 3 products and each one has different promotions.

Regards!

Answers (0)