SilverShop\Cart\ShoppingCart::add
Adds an item to the cart
Signature
public function add(Buyable
$buyable,
[integer
$quantity = 1,
[array
$filter = ]] )
Parameters
$buyable
— SilverShop\Model\Buyable
$quantity
— integer$filter
— array
Returns
- boolean|OrderItem
- false or the new/existing item