SilverShop\Model\Buyable::canPurchase
Checks if the buyable can be purchased. If a buyable cannot be purchased then the method should return false
Signature
public function canPurchase([Member|null
$member = NULL,
[integer
$quantity = 1]] )
Parameters
$member
—
object
- the Member that wants to purchase the buyable. Defaults to null
$quantity
—
integer
- the quantity to purchase. Defaults to 1
Returns
- boolean
- true if the buyable can be purchased