Changes in the Customer wishes

Improve your planning skills by thinking about all the different possible actions as an end-user of the API and as the product's customer.

Change dish quantity

The logic of this method is similar to that of adding order items.

  • Retrieve the order and fetch the menu items.
  • Another thing is that we assure that each of the menu items is an order item. Because if a menu item is not part of an order, there may be some mistake.
  • changeItemsQuantity() model helper is simpler. It updates the quantity of each order item as requested and updates the totals, respectively.

Get hands-on with 1200+ tech skills courses.