/**
  * Returns true if the price calculator and stock management are enabled for the given product
  *
  * @since 3.0
  * @param WC_Product $product the product
  * @return boolean true if the price calculator and stock management are enabled
  */
 public static function pricing_calculator_inventory_enabled($product)
 {
     // TODO: also verify that stock is being managed for the product?  use case: stock management turned on, pricing calculator inventory enabled, stock management is diabled
     if (self::calculator_enabled($product)) {
         // see whether a calculator is configured for this product
         $settings = new WC_Price_Calculator_Settings($product);
         return $settings->is_pricing_inventory_enabled();
     }
     return false;
 }