WordPress.org

Forums

WooCommerce - excelling eCommerce
Subcategory not showing on shop page (22 posts)

  1. indira14
    Member
    Posted 1 year ago #

    On my shop page, I have category images showing. When you click a category, you see the subcategory images.

    For example, I have a category "Bakery" and inside are 3 subcategories. However, the site only shows two of them. Inside the third, there are products that are all in stock and published. But when on Bakery shop page, the subcategory does not show!

    What's happening?

    I think this also has to do with another issue: I have the amount of products inside a category showing beside the category name. For a lot of categories, the number is incorrect. For example I have over 20 products inside my Alcoholic Drinks category, but it says there's only 1 inside.... Strange!

    https://wordpress.org/plugins/woocommerce/

  2. indira14
    Member
    Posted 1 year ago #

    Forget that last thing I mentioned, I found on Google that it's the product count that's not working properly in WooCommerce. I'll just turn that off.

    As for the main thing, I can give you an example.

    Check this link: http://toko4all.nl/woo/cat/eten-drinken/dranken/
    You see 4 subcategories there. But really, there's FIVE subcategories in the back-end. The category "Frisdrank" is missing.

    The products are there and the subcategory page does exist: http://toko4all.nl/woo/cat/eten-drinken/dranken/frisdrank/

    In short: some subcategories are INVISIBLE. How do I fix this?

  3. indira14
    Member
    Posted 1 year ago #

    I temporarily fixed it by creating a new subcategory and moving the products in the 'ghost subcategory' to the new one.

    Now it's happening again to a new subcategory, but even after adding a new subcategory it's not showing up on the category page. I have seven subcategories, but it's only showing six of them.

    Help appreciated.

  4. BlottedInq
    Member
    Posted 1 year ago #

    I am having the same issue of subcategories not showing. Any update on this?

  5. indira14
    Member
    Posted 1 year ago #

    BlottedInq do you use WPML too?

  6. BlottedInq
    Member
    Posted 1 year ago #

    Indira14

    No I do not currently use WPML. I actually solved the issues by updating my theme. Some of the files were out of dating and conflicting with the categories for whatever reason.

  7. mavisenshen
    Member
    Posted 1 year ago #

    Hi indira14, do u find solution for this prolem, i meet the same prolem also, i don't know how to figure it out.

  8. voala
    Member
    Posted 1 year ago #

    Any update on this? I also have subcategories not showing. Only 2 subcategories are showing instead of 5.

  9. mavisenshen
    Member
    Posted 1 year ago #

    @voala, hey, i find a way to solve the problem, i change the subcategories name, and slug, and then the other subcategories show up

  10. gmankelow
    Member
    Posted 1 year ago #

    Hi Mavisenshen, can you add any further detail to your fix as I am having the same issue. Adding a new subcategory and moving the products from the old to the new sub category worked for a while and now does not. I have tried renaming like you as as well (although I was not sure what I was renaming).

    Any help would be appreciated.

  11. voala
    Member
    Posted 1 year ago #

    What did it for me was to use the woocommerce tools. Seems that woo was not counting the products from the subcategories. Go to WP Admin > WooCommerce > System Status > Tools Tab.

    1. Click on Recount terms to make woo recount the products
    2. Click on Clear transients to clear all cached files
    3. Save Changes

    This did the trick for me. Now works like a dream :)

  12. gmankelow
    Member
    Posted 1 year ago #

    Voala,

    Thank you, thank you & thank you.

    Something that has been troubling me for quite some time, so easily solved. I had been searching on and off over the last week for a solution without luck until I stumbled upon this forum topic.

    A weight has been lifted. :-D

  13. voala
    Member
    Posted 1 year ago #

    Glad it worked out.:)

  14. Phil C
    Member
    Posted 1 year ago #

    Ahh this worked for me too, thanks Voala!

  15. macmeister
    Member
    Posted 1 year ago #

    Thank you thank you thank you!
    I tried all 3 just in case, and it appears to have worked!
    Not sure which did it: Term counts, then Expired Transients, then WC Transients in version 2.8.1

  16. dinus444
    Member
    Posted 1 year ago #

    Thank you Voala, this worked for me too.
    Was doing my head in!

  17. indira14
    Member
    Posted 10 months ago #

    I updated WooCommerce to 2.2 and once again some of my subcategories are hidden.

    I noticed that if I have a subcategory that has 0 products in it, but does have sub-subcategories with products in it, it does not show.

    So for example

    PARENT CATEGORY
    - Subcategory (0 products)
    -- Sub-subcategory (99 products)

    Subcategory is INVISIBLE because it has 0 products, but the underlying subcategory is full of products so it SHOULD be visible when you're in the parent category.

  18. mgilberties
    Member
    Posted 10 months ago #

    +1 indira14's comment.

    Experiencing the exact same issue. The way around it I have found is to do the following:

    Set the Subcategory's display type to be: Subcategories
    Assign at least one product to this subcategory
    Assign all other products to the Sub-subcategory (where you actually want it)

    This way it doesn't list the product under the subcategory, but displays the link to the sub sub category.

    someone say sub?

  19. nicnac1111
    Member
    Posted 10 months ago #

    Thank you mgilberties for your response! I could not figure this out, but your suggestion worked!

  20. indira14
    Member
    Posted 10 months ago #

    We did a similar thing to make the subcategories show. Glad you two 'solved' it too.

    Still, I think WooCommerce should do something about this because this problem keeps coming back. Our structure was perfect, now we had do a unwieldy workaround to make everything show up correctly.

  21. afaast
    Member
    Posted 10 months ago #

    Same issue but assigning 1 product instead of 0 fixed it.

  22. HelpMeHelpYou
    Member
    Posted 10 months ago #

    Same issue and assigning an invisible product to the category made it appear. This is frustrating seeing as this was not the issue with previous versions of woocommerce.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic