IEditSessionAddOrderItemModifier Method (Int32, IProduct, IProductGroup, IOrderStub, IOrderItemProductStub)iikoFront Api V3 Documentation
Adds order item modifier to the order item in existing order. User must have rights to edit orders.

Namespace: Resto.Front.Api.V3.Editors
Assembly: Resto.Front.Api.V3 (in Resto.Front.Api.V3.dll) Version: 4.1.1236.1 (4.1.1236.1)
Syntax

C#
INewOrderItemModifierStub AddOrderItemModifier(
	int amount,
	IProduct modifier,
	IProductGroup parentGroup,
	IOrderStub order,
	IOrderItemProductStub orderItemProduct
)

Parameters

amount
Type: SystemInt32
Amount of the modifier. Can be from 1 to 999.
modifier
Type: Resto.Front.Api.V3.Data.AssortmentIProduct
Assortment position for modifier. Must be accessible through IOrderItemProduct.AvailableSimpleModifiers collection or one of the IOrderItemProduct.AvailableGroupModifiers child collections.
parentGroup
Type: Resto.Front.Api.V3.Data.AssortmentIProductGroup
Assortment position group for modifier. Must be specified if new modifier will be part of the group modifier. Otherwise null. Group modifier must be chosen from IOrderItemProduct.AvailableGroupModifiers
order
Type: Resto.Front.Api.V3.EditorsIOrderStub
Order to which modifier will be added
orderItemProduct
Type: Resto.Front.Api.V3.EditorsIOrderItemProductStub
Order item to which modifier will be added.

Return Value

Type: INewOrderItemModifierStub
See Also

Reference