title: Minumun cart amount except for several specific products in WooCommerce
body: <p>I'm using the following code "<a href="https://stackoverflow.com/a/51514710/11987538">Minimum cart amount except for a specific product in Woocommerce</a>" in my php that allows the override of the Woocommerce minimum cart value of $130.</p>
  
  <p>Works fine but only for one defined product. In this case <code>product_id 2649</code></p>
  
  <p>I am trying to further modify this code by adding lines of <code>except_product_id...</code> 
  but that does not help.</p>
  
  <p>How can I modify to make a list of exceptions by <code>product id</code>?</p>
  
  <p>Any help appreciated</p>
  
  <pre class="lang-php prettyprint-override"><code>add_action( 'woocommerce_check_cart_items', 'min_cart_amount' );
  function min_cart_amount() {
      ## ----- EXCLUDES A PRODUCT FROM MINIMUM ORDER DOLLAR VALUE Your Settings below ----- ##
  
      $min_cart_amount   = 130; // Minimum cart amount
      $except_product_id = 2649; // Except for this product ID
      $except_product_id = 2659; // Except for this product ID
      $except_product_id = 1747; // Except for this product ID
  
  
  
      // Loop though cart items searching for the defined product
      foreach( WC()-&gt;cart-&gt;get_cart() as $cart_item ){
          if( $cart_item['data']-&gt;get_id() == $except_product_id || $cart_item['product_id'] == $except_product_id )
              return; // Exit if the defined product is in cart
      }
  
      if( WC()-&gt;cart-&gt;subtotal &lt; $min_cart_amount ) {
          wc_add_notice( sprintf(
              __( "&lt;strong&gt;A Minimum of %s is required before checking out.&lt;/strong&gt;&lt;br&gt;The current cart's total is %s" ),
              wc_price( $min_cart_amount ),
              wc_price( WC()-&gt;cart-&gt;subtotal )
          ), 'error' );
      }
  }
  </code></pre>