Thanks Sharan for the details,

There are certainly other "little" quirks like that and we should try to act 
globally on them

OK, I'm rehashing my idea and should rather create a Jira main task/umbrella 
and begin to work on it :D

Jacques


Le 06/09/2018 à 17:37, Sharan Foga a écrit :
Hi Suraj

I also can’t think of a reason a zero quantity of an item would need to be 
added to the shopping cart. So yes I think adding a check so that any zero 
quantities are removed from the cart before creating the order would be good.

For info - I did a quick test using the stable demo and added a zero quantity 
widget to the shopping cart. It created an order and gave me all the discounts 
and promotional items as if I’d actually bought something.

Realistically, I think what you've found is a little hole in the order creation 
logic that needs to fixed.

Thanks
Sharan

On 2018/09/05 10:43:49, Suraj Khurana <sur...@apache.org> wrote:
Hello team,

Currently, it is possible to add items in cart with zero quantity. I can't
think of any use case for this.
We also have a method available in shopping cart as *removeEmptyCartItems*,
but it is always called while handling exceptions.

I think we can call this method before create order to make sure no items
in cart have zero quantity.
Please share your thoughts.

--
Thanks and Regards,
Suraj Khurana
Omnichannel OMS Technical Expert
HotWax Systems


Reply via email to