Order::addItem
Add an item to the order representing the product, if an item for this product exists increase the quantity. Update the Order total afterward.
Signature
public function addItem(Product
$product,
Variation
$variation,
[integer
$quantity = 1,
[ArrayList
$options = NULL]] )
Parameters
$product
— DataObject- The product to be represented by this order item
$variation
—$quantity
— integer$options
—