Woocommerce shows each category with its products.

I can go to the "WooCommerce → Settings" link from the admin menu of the sidebar and select the "Catalog" tab, and then check the 2 boxes "Show subcategories on the store page" but this shows a list of categories, then all products. What I want is on the store page, in the header of the first category, then under its products, then the next category and its products.

In short, I want to list all product categories.

+7
source share
1 answer

You can create a new store page and use woocommerce shortcodes in combination with headings to create a list of products organized by category. For example, in an HTML editor, you can do something like this:

<h2>Category Name</h2> [product_category category="category-name" per_page="12" columns="4" orderby="date" order="desc"] 
+24
source