When WooCommerce is added, the main search facility is still finding posts and pages. To change this so the search returns product information, the following code can be added to functions.php.

// THIS BELOW CODE IS DESIGNED TO CHANGE THE WORDPRESS SEARCH TO APPEARS A WOOCOMMERCE SEARCH

function wpb_change_search_url()
{
    if (is_search() && !empty($_GET["s"]) && $_GET["post_type"] != "product") {
        wp_redirect(
            home_url("/?s=") .
                urlencode(get_query_var("s")) .
                "&post_type=product"
        );
        exit();
    }
}
add_action("template_redirect", "wpb_change_search_url");