Hi, sta777, thanks for the quick response.
Actually I edited the code a little bit and used it like this, so it has a nice design for my theme:
<div id="headersearchform-container" class="group">
<form role="search" method="get" id="headersearchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" >
<div class="group formborder">
<input type="text" value="" name="s" id="headers" placeholder="Ce produs cauti astazi?" />
<input type="submit" class="button" id="headersearchsubmit" value="Cauta" />
</div>
<input type="hidden" name="post_type" value="product" />
</form>
</div>
And used it via a snippet in my home page. But it still has the part with:
<input type="hidden" name="post_type" value="product" />
Which causes the “&post_type=product” to appear, no?
Also the problems with my searches are a little bigger, if I try to search by a keyword with spaces in between, like “key%20word”, my search link looks like “https://site.com/?s=key%20word” and goes in an infinite loop.
The search.php and searchfrom.php are the theme’s default:
Here is searchform.php: https://pastebin.com/UHU8Bghm
Here is search.php: https://pastebin.com/d3znLznz