title: WooCommerce search no results not working
body: <p>I'm having an issue with woocommerce search results. The problem is that the "no results" page never appears. When I search for something that I know has no results - it just dumps all products. Example: <a href="http://alpha.safetyworks.com/?s=fkjakfjalkfjdlkjfalkjflkaj%3Blkajfd&amp;post_type=product&amp;tags=0&amp;limit=10&amp;ixwps=1" rel="nofollow noreferrer">http://alpha.safetyworks.com/?s=fkjakfjalkfjdlkjfalkjflkaj%3Blkajfd&amp;post_type=product&amp;tags=0&amp;limit=10&amp;ixwps=1</a></p>
  
  <p>In my child theme, I have a file called woocommerce.php and the code looks like:</p>
  
  <pre><code>&lt;?php get_header();
  $bloglayout =   neat_get_blog_layout();
  ?&gt;
  &lt;div class="blog-single"&gt;
      &lt;div class="container"&gt;
  
          &lt;?php if( $bloglayout == 'l_sidebar' ):?&gt;&lt;?php get_sidebar();?&gt;&lt;?php endif;?&gt;
          &lt;div class="main-column"&gt;
              &lt;?php 
                  // get the post.
                  if( have_posts() ):
                      // loop the post.
                  woocommerce_content();
  
                  else:
                      // nothing found.
                      get_template_part( 'content', 'none' );
                  endif;
              ?&gt;
              &lt;?php 
              /**
               * neat_pagination action.
               * hooked neat_pagination, 10
               */
              do_action( 'neat_pagination' );
              ?&gt;       
          &lt;/div&gt;
          &lt;?php if( $bloglayout == 'r_sidebar' ):?&gt;&lt;?php get_sidebar();?&gt;&lt;?php endif;?&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;?php get_footer();?&gt;
  </code></pre>
  
  <p>So from this, I can tell 2 things - one the "have_posts()" function is not working properly AND/OR the function woocommerce_content() is not working. </p>
  
  <p>woocommerce_content() lives on wc-template-functions.php and that looks like</p>
  
  <pre><code>if ( ! function_exists( 'woocommerce_content' ) ) {
  
      /**
       * Output WooCommerce content.
       *
       * This function is only used in the optional 'woocommerce.php' template.
       * which people can add to their themes to add basic woocommerce support.
       * without hooks or modifying core templates.
       *
       */
      function woocommerce_content() {
  
          if ( is_singular( 'product' ) ) {
  
              while ( have_posts() ) : the_post();
  
                  wc_get_template_part( 'content', 'single-product' );
  
              endwhile;
  
          } else { ?&gt;
  
              &lt;?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?&gt;
  
                  &lt;h1 class="page-title"&gt;&lt;?php woocommerce_page_title(); ?&gt;&lt;/h1&gt;
  
              &lt;?php endif; ?&gt;
  
              &lt;?php do_action( 'woocommerce_archive_description' ); ?&gt;
  
              &lt;?php if ( have_posts() ) : ?&gt;
  
                  &lt;?php do_action('woocommerce_before_shop_loop'); ?&gt;
  
                  &lt;?php woocommerce_product_loop_start(); ?&gt;
  
                      &lt;?php woocommerce_product_subcategories(); ?&gt;
  
                      &lt;?php while ( have_posts() ) : the_post(); ?&gt;
  
                          &lt;?php wc_get_template_part( 'content', 'product' ); ?&gt;
  
                      &lt;?php endwhile; // end of the loop. ?&gt;
  
  
                  &lt;?php woocommerce_product_loop_end(); ?&gt;
  
                  &lt;?php do_action('woocommerce_after_shop_loop'); ?&gt;
  
              &lt;?php elseif ( ! woocommerce_product_subcategories( array( 'before' =&gt; woocommerce_product_loop_start( false ), 'after' =&gt; woocommerce_product_loop_end( false ) ) ) ) : ?&gt;
  
                  &lt;?php wc_get_template( 'loop/no-products-found.php' ); ?&gt;
  
              &lt;?php endif;
  
          }
      }
  }
  </code></pre>