ManagesOrderItems
trait ManagesOrderItems
Methods
No description
No description
Subtract cart item quantity from menu stock quantity
Return all order menu by order_id
Return all order menu options by order_id
Return all order menus merged with order menu options
Return all order totals by order_id
Add cart menu items to order by order_id
Add cart menu item options to menu and order by, order_id and menu_id
Add cart totals to order by order_id
No description
No description
No description
No description
No description
Details
at line 13
static
bootManagesOrderItems()
No description
at line 20
protected
handleOnBeforePaymentProcessed()
No description
at line 30
void
subtractStock()
Subtract cart item quantity from menu stock quantity
at line 57
Collection
getOrderMenus()
Return all order menu by order_id
at line 67
Collection
getOrderMenuOptions()
Return all order menu options by order_id
at line 77
Collection
getOrderMenusWithOptions()
Return all order menus merged with order menu options
at line 109
Collection
getOrderTotals()
Return all order totals by order_id
at line 121
float
addOrderMenus(array $content)
Add cart menu items to order by order_id
at line 160
protected bool
addOrderMenuOptions($orderMenuId, $menuId, $options)
Add cart menu item options to menu and order by, order_id and menu_id
at line 189
bool
addOrderTotals(array $totals = [])
Add cart totals to order by order_id
at line 202
addOrUpdateOrderTotal(array $total)
No description
at line 210
calculateTotals()
No description
at line 243
orderMenusQuery()
No description
at line 248
orderMenuOptionsQuery()
No description
at line 253
orderTotalsQuery()
No description