Sunnysideup\Ecommerce\Api\ShoppingCart::deleteBuyable
Delete item from the cart.
returns null if the current user does not allow order manipulation or saving (e.g. session disabled)
Signature
public function deleteBuyable(BuyableModel
$buyable,
[array
$parameters = ] )
Parameters
$buyable
— Sunnysideup\Ecommerce\Interfaces\BuyableModel- - the buyable (generally a product) being added to the cart
$parameters
— array- - array of parameters to target a specific order item. eg: group=1, length=5
Returns
- bool|OrderItem