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

How to build an order picking process and replace some products after checkout

superpalmi
Explorer
0 Likes
477

Hi, everyone, I'm building an order-picking process where the employees can manage product substitutions and deletions after the order was already paid.

I built a process that creates a cart from the previous order and adds, deletes, updates entries just following the ootb addToCart process used by the user and then placing a new order version. The main issue is that orders that have 50 or more entries can take up to minutes to update everything (expecially with promotions). Is there a more efficient way to update the order?


The goal is to make an api that updates a single order recieving data based on this dto:

{ "orderCode": "xxxxxx",
"entries": [
{ "entryNumber": 0, "product": "xxxx", "quantity": 0, "substitutions": [ { "product": "yyyyy", "quantity": 1 } ] }, { "entryNumber": 1, "product": "zzzzz", "quantity": 1 },
{ "entryNumber": 2, "product": "xxxxxx", "quantity": 0, "substitutions": [ { "omsEntryId": "1234", "product": "yyyyyy", "quantity": 2 } ] }, ...] }

Thanks for your collaboration


Accepted Solutions (0)

Answers (0)