Hello. Please tell me in which HTML file the code for displaying the table of goods? Those. go to the category, see the grid of products, there is an image, price, and how to adjust the display of the output of this entire category? Suppose I want to add something to each product.
1 answer
To display a group of products using the template archive-product.php . It is located in the theme folder: themes/theme-name/archive-product.php or themes/theme-name/woocommerce/archive-product.php . If there is no such template in the used theme, then the default template is used, which is located in the plugin folder: plugins/woocommerce/templates/archive-product.php .
For the withdrawal of each individual product is responsible template content-product.php . To call it, in the file archive-product.php function wc_get_template_part( 'content', 'product' ); . The template file content-product.php also searched first in the theme folder, and if not found, the default template is used, located in the plug-in folder.
If you make changes, you need to do this for the file that is in the folder with the theme. If the content-product.php file is not in the theme folder, then copy the default template there and correct it.