BuyableStockDecorator::canPurchase
This is a pivotal method.
Only allow purchase if stock levels allow TODO: customise this to a certain stock level, on, or off
Signature
public function canPurchase([
$member = NULL] )
Parameters
$member
—
Returns
- null
- (equals TRUE!), true or false