How to handle Default Quantity

A defaultQuantity is set on an option within a modifier group, not on the group itself. A value of 1 or more shows the option as already selected, with that quantity, when the customer opens the product.

Default quantity - UI

Below illustrates how defaultQuantityshould be handled on the menu UI;

Delicious Steak Frites17.50
Add sides (optional)Min 0, max 2productType 3
Side Salad+2.50productType 11
Fries+3.00productType 10

Pre-selected
Side Salad starts selected and counts toward the group’s min, max and multiMax like any customer selection. The customer can change or remove it, and if they keep it, include it in the order.

{
  "name": "Side Salad",
  "productType": 1,
  "defaultQuantity": 1
}

Did this page help you?