SilverShop\Cart\ShoppingCart::setQuantity
Sets the quantity of an item in the cart.
Will automatically add or remove item, if necessary.
Signature
public function setQuantity(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