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

Update quantity of an item via EventBus in NGUI SAP CCO

Former Member
0 Likes
428

Good morning. I am trying to modify the quantity of a product but I get an error. What parameters should I pass in the EventBus? There is a lot and most I can't get them previously ...

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

Perfect.

I will read the content of the link that you have given me and I will prove what you have told me.

Thank you!

R_Zieschang
Active Contributor
0 Likes

Hi dolangt12,

I would suggest doing this "sales item adding and updating" in the backend. NOT in the ui. When you add items in the ui, these items are not added to the receipt entity in the backend.
Look at my blog series, it should be a good start on how to develop plugins for cco:

https://blogs.sap.com/2018/10/16/sap-customer-checkout-plugin-development-part-i/

hth

Robert

R_Zieschang
Active Contributor
0 Likes

Hi dolangt12,

don't update the quantity only on UI because all the calculation (taxes, discounts, ... ) are happening in the backend of cco.

Even if you find a way to make this work, the state of the receipt in the UI will drift apart from the state of the receipt in cco backend.

Why do you want to update the quantity? You can send events through the eventbus back to a cco plugin where you can safely manipulate the receipt and trigger the refresh in the UI.

Regards

Robert

Former Member
0 Likes

I have to read an array of products and update the list automatically. The add part works fine, but only add 1 product of each. Is doing it this way wrong? I am new to creating plugins and I still have to learn a lot.

I understand that if I modify that column when creating the ticket, the discounts will be made correctly, right?