You are here

function commerce_stock_product_enabled in Commerce Stock 7

Given a product, determine whether stock management is enabled for that product.

Parameters

$product: The product to check.

Return value

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

File

./commerce_stock.module, line 504
Allow commerce products to have stock levels associated with their SKU

Code

function commerce_stock_product_enabled($product) {
  return commerce_stock_product_type_enabled($product->type);
}