i havent been able to find the answer for this anywhere but i cant seen to display any of the products on the root categories page from its sub category members. When i click the category from the top navigation i get the sub categories on the left and on the right (main content) “There are no products matching the selection”. Each sub-cat. shows its products though.
In Admin -> Catalog -> Manage Categories each category shows the number of products i.e (4) however its root category displays (0).
Any ideas?
thanks in advance
Solution
Go to Admin -> Catalog -> Manage Categories -> "Select Category" -> Display Settings -> Is Anchor = "Yes"
Then:
Admin -> System -> Index Management -> "Select All" -> "Reindex data" -> "Submit"
Thanks for everyones comments
Assign Static Block to Parent CategoryFind the parent category that you want to show subcategories on, then go to the 'Display Settings' tab. Switch 'Display Mode' to either 'Static block only' or 'Static block and products', then choose your newly create 'Subcategories' block from the 'CMS Block' menu. Then save.
Click on Appearance > Customize. Then go to WooCommerce > Product Catalog. Select “show subcategories” from Category Display. Click on Save Changes.
Easy Steps to Display Products in Magento 2 Home PageSelect the widget type as 'Catalog Products List' and enter the basic information. In the bottom you can see the conditions to add. Select the option 'Category' and select the category you want to display in home page and click “Insert Widget” button. That's it.
Make sure you set "Is anchor" to "Yes" for your root category.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With