More details :
Can we receive update/data when Register ‘Done’ button for line item add is actioned ?
that Modifier was added to line item just entered,
Or that Quantity was decreased for line item just entered
The first two can be done with the OrderV3Connector.OnOrderUpdateListener. However, there isn't a listener for the stock of an item being decremented at this time.
Can you explain your use case for listening for the stock decrementing? Perhaps we can work toward an alternative solution.
Thanks. Its worked. Now from my requirement just one event is missing here in OnOrderUpdateListner and that is "Line Item Modifier Delete event". Is there any way to get it ?
There is not a method within the OnOrderUpdateListener class which accounts for the event of removing a modification from a lineItem at this time. If you would like I can put in a feature request, however cannot guarantee if or how soon this method would be available.
What is the use case for listening for when a modification is removed? Perhaps we can figure something else out.
Even using OrderV3Connector.OnOrderUpdateListener2 there is no "line item modifier deleted" event. However, the onOrderUpdated event is sent when modifiers are deleted. If you keep a previous version of the Order in memory, you can compare the previous and current modifiers to determine if any have been deleted.
5 People are following this question.