Translation of documentation " Template Structure + Overriding Templates via a Theme "
WooCommerce template files contain markup for the client interface and the HTML of your store. After reviewing their contents, you can see that all these files contain hooks that allow you to add or move content without having to edit these files directly. This method of editing the content without changing the source files avoids the problems associated with updating the system.
Template files are located in the /woocommerce/templates/ folder.
You can see the folder structure and file contents for version v2.5.0 here .
A complete list of WooCommerce versions and their respective template files can be found at the link to the documentation at the very beginning of the answer.
To avoid problems with updating WooCommerce, template files should be modified by overriding them.
Copy the template files of the appropriate version of WooCommerce inside your theme into the /woocommerce , keeping the original folder structure, excluding the /templates/ subfolder.
For example, to override order notifications for an administrator, copy
woocommerce/templates/emails/admin-new-order.php
to folder
ваша_тема/woocommerce/emails/admin-new-order.php
The copied file now overrides the original one.
Attention : if your topic has a file woocommerce.php ,
you can not override woocommerce/archive-product.php
file within your theme because woocommerce.php
takes precedence over all other template files. This is done to prevent problems with the display of information.
Do not edit the template files directly, as all changes you have made will be lost after updating the system.
Update
The search form template is located in the folder.
woocommerce/templates/product-searchform.php
Copy it to
ваша_тема/woocommerce/product-searchform.php
And change the way you want.