SilverShop\Page\Product::canPurchase
Conditions for whether a product can be purchased: - global allow purchase is enabled - product AllowPurchase field is true - if variations, then one of them needs to be purchasable - if not variations, selling price must be above 0
Other conditions may be added by decorating with the canPurchase function
Signature
public function canPurchase([Member
$member = NULL,
[integer
$quantity = 1]] )
Parameters
$member
— object
$quantity
— integer
Returns
- boolean