Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Woocommerce show each categories with their products

I can go to 'WooCommerce -> Settings' link from side bar admin menu & select 'Catalog' tab & then tick 2 check boxes "Show subcategories on the shop page" But this shows a list of categories, then all products. What i want is on shop page, At first category title, then its products under it, then next category and its products.

In short, i want to list all products category wise.

like image 501
DharmaRaj Rathod Avatar asked Sep 08 '12 12:09

DharmaRaj Rathod


People also ask

How do I show product categories in WooCommerce?

Go to WooCommerce > Settings, select the Products tab, and then choose the Display option. For each of the Shop Page Display and Default Category Display options, select Show both. Click the Save changes button to save.

How do I display WooCommerce products by subcategory?

Click on Appearance > Customize. Then go to WooCommerce > Product Catalog. Select “show subcategories” from Category Display. Click on Save Changes.

How do I display a particular category product in WooCommerce shortcode?

These two shortcodes will display your product categories on any page. [product_category] – Will display products in a specified product category. [product_categories] – Will display all your product categories.

Can a product have multiple categories in WooCommerce?

A: Yes! This is actually a core feature of WooCommerce. If you go to Products > Categories to view your category list, you can actually drag and drop all categories and subcategories into the order that you choose.


1 Answers

You could create a new shop page and use the woocommerce shortcodes in combination with headers to create a list of products organized by category. For example, in the HTML editor you could do something like this:

<h2>Category Name</h2>
[product_category category="category-name" per_page="12" columns="4" orderby="date" order="desc"]
like image 52
Tomanow Avatar answered Oct 19 '22 19:10

Tomanow