Products is not showing up on Magento2 subcategory

Zike picture Zike · Nov 25, 2015 · Viewed 20.6k times · Source

I installed a fresh magento2, and top categories are working, but for sub-category, there is no product showing up in frontend even thought I assigned products to these sub-categories.

It's always said "We can't find products matching the selection."

Where can I find the code in Magento 2 that's responsible for displaying products so I can diagnose this in a programatic manner?

Answer

Echo picture Echo · Nov 26, 2015

To show the product, check if the product following options:

  1. General->Status = Enabled
  2. general->Visibility = Catalog,Search
  3. Inventory->Qty > 0
  4. Inventory->Stock Availability = In Stock
  5. Websites = checking your site
  6. Catgories = checking your category.

If you want checking product to subcategory, go to Catalog->Manage Categories->Select your category, open tab Display Settings and change option "Is Anchor" to "Yes". Save category.