Site icon Hip-Hop Website Design and Development

how can change search worth in woocommerce

I’ve an enter search discipline that I made customized. When this enter worth is entered, I need it to seek for the merchandise on the web page, however I couldn’t.

In brief, after I enter leather-based within the enter discipline, I need it to redirect to such a web page.

localhost/instance/?s=leather-based&post_type=product

Following my code:

HTML

<enter sort="text" title="s" id="keyword" onkeyup="fetch()" placeholder="Search.." >

features.php

echo ' 
<kind position="search" methodology="get" class="search-form" motion=" '.home_url( '/' ).' ">
 <div class="search-btn">
   <a href="#">View All</a>
 </div>
</kind>
    ';

Thanks advance..