SilverShop\Cart\ShoppingCart::findOrMakeItem
Finds or makes an order item for a given product + filter.
Signature
private function findOrMakeItem(Buyable
$buyable,
[integer
$quantity = 1,
[array
$filter = ]] )
Parameters
$buyable
— SilverShop\Model\Buyable- the buyable
$quantity
— integer- quantity to add
$filter
— array
Returns
- OrderItem
- the found or created item