Support » Plugin: WooCommerce » Categories not showing up, but subcategories do have products

  • Resolved David Borrink

    (@davidborrink)


    I just migrated a site from Ecwid to WooCommerce via a cart service. All the products, categories and subcategories have come over. When I went to the Shop page and chose the display setting to be “categories”, only five of the ten main categories appears. The five that do show up have direct products attached to them. The five that do not show up have subcategories, and these subcategories DO have products attached to them.

    I have checked that the subcategories are properly listed under parent categories, and that they do have attached products.

    If I change one of the subcategories to be a main category, then it shows up on the shop page. Changing it back to a subcategory still winds up being “hidden”. I set the category pages display to be any of the three options of subcategories and/or products and I still do not get parent categories to show up on the shop page.

    I have also tried variations of the “display” settings in the category edit panels.

    I have tested a generic WordPress theme and the problem remains.

    Since all the products, categories and subcategories came over in the migration properly and appear to be attached correctly, I’m not sure what the problem may be. Especially when I can set a subcategory as parent and it does show up on the Shop page as well as the products attached to it when I click on it.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter David Borrink

    (@davidborrink)

    I’ve been reading several posts here that are related to this issue and I’m seeing situations where people say there was a change that subcategories don’t work on the “Category page” choice in the Customizer. I’m starting to wonder if my idea of using subcategories is valid, or do I need to tell my client that they cannot do subcategories under their main categories.

    Thread Starter David Borrink

    (@davidborrink)

    After reading about another situation here on the WP Woo boards, involving migrating from another cart system, I tried a suggested action and got it fixed!

    Here’s how I did it.

    I created a brand new category called “A Test Category” and a new subcategory called “A Test Subcategory” (naming them so they’d appear at the top of the category list).

    I then went into my dashboard product listing and filtered one of the categories that wasn’t coming up, and added the first one to the new subcategory. The result was the test product category did show up with the test subcategory appearing on the next page, then the product I added. AND….

    … the missing real Parent category for the product I added showed up! I thought, “maybe this corrects some database structure when I did this”. So I added a product from each of the other four missing parent categories to the new test subcategory.

    YES… it made all the missing categories show up! So apparently something just needed a little “kick” by what I did. Everything now shows up.

    Hope this helps someone else. Nothing else made sense.

    Thread Starter David Borrink

    (@davidborrink)

    I’m following this up a couple months later and ran into it again, this time on my wife’s site when we wanted to use subcategories for the first time. We created some new parent categories and wanted to put some existing categories under them. There were products in the existing categories, but the new parent was not showing up on the main shop page. I tried the above method again.

    By creating that same “A Test Category” and “A Test Subcategory” setup, then adding one existing product of the existing subcategory into “A Test Subcategory”, something clicked and fixed itself, allowing the new true parent category to show up.

    NOTE TO WOOCOMMERCE: this would seem to be a bug that needs attention. My first experience was using a theme from GeneratePress, but this situation involves the Genesis Framework, so it’s not a theme issue.

    • This reply was modified 5 months, 2 weeks ago by David Borrink.
    futureyoung

    (@futureyoung)

    You are great man! thankyou

    Thread Starter David Borrink

    (@davidborrink)

    And that’s why we all share the “hacks” we find. 🙂 Glad you were helped by my tip.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.