when the user visits my shop homepage he sees all the products which are in the shop. I want to change the view, so that the user sees:
- Category 1
Products of cat 1
- Category 2
Products of cat 2
How can I achieve this? I looked in woocommerce/templates/archive-product.php
and found this:
<?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(); ?>
But how can I hook into this, to create two different loops for cat 1 and cat 2?
Does somebody knows that? Thanks!