/**
  * Returns true if the price for the given product should be displayed "per
  * unit" regardless of the calculator type (quantity or pricing)
  *
  * @since 3.0
  * @param WC_Product $product the product
  * @return boolean true if the price should be displayed "per unit"
  */
 public static function pricing_per_unit_enabled($product)
 {
     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_enabled();
     }
     return false;
 }