I'm trying to override the list product page. My objective is add certain information on each product above the add to cart button for example.
I already did with the single page product, just overrided catalog_product_view.xml
and added my block where I wanted.
But with list product I'm watching the catalog_category_view.xml
and I really don't know how to it.
<block class="Magento\Catalog\Block\Product\ListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">
product/list.phtml
This template is doing all the work. So I only think to copy this template on my vendor's module and write my stuff where I want.
Is this the propper way? Can't I only write my block and indicate magento to use it? I don't like to copy all this 'core' template and write inside modifying it