You are here

function commerce_ss_product_enabled in Commerce Stock 7.2

Determines whether stock management is enabled for a product.

Parameters

object $product: The product to check.

Return value

bool TRUE if stock management is enabled on the product's product type.

1 string reference to 'commerce_ss_product_enabled'
commerce_ss_rules_condition_info in modules/commerce_ss/commerce_ss.rules.inc
Implements hook_rules_condition_info().

File

modules/commerce_ss/commerce_ss.module, line 212
Allow commerce products to have stock levels associated with their SKU.

Code

function commerce_ss_product_enabled($product) {
  return commerce_ss_product_type_enabled($product->type);
}