hey, i am working with woocommerce for the first time. i want to change the html of the shop page.
so i understand that there are two ways of doing it:
1 - in my theme folder create the structure of the woocommerce template folder and change whatever file i want.
2 - using filter hooks.
i fail miserably with both approaches.
i copy the archive-product.php template file, so i can do add and change some html but the loop itself is not there, and i cannot understand where is that html in order to change it. this is the code there:
* woocommerce_before_shop_loop hook
* @hooked woocommerce_result_count - 20
* @hooked woocommerce_catalog_ordering - 30
do_action( 'woocommerce_before_shop_loop' );
<?php woocommerce_product_loop_start(); ?>
<?php woocommerce_product_subcategories(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php wc_get_template_part( 'content', 'product' ); ?>
<?php endwhile; // end of the loop. ?>
<?php woocommerce_product_loop_end(); ?>
* woocommerce_after_shop_loop hook
* @hooked woocommerce_pagination - 10
do_action( 'woocommerce_after_shop_loop' );
i do not want to wrap it with my html, but to change the content of the loop html !!! where can i find it?
and how can you do it via the filter hook?
i have looked at their documentation, and it is not really orgenized or explained good, at least af far as i could see.