Category widget display No product in the category (Front office)

Solved9 replies3 participantsUpdated by Jack Richardson

  • Avatar: Wences
    Wences
    Participant

    Hello support team,
    I am facing an issue with shop filters widget.
    When the page is an editing mode the widget display categories.

    Otherwize, in front office the widget does not work (No product category).

    Thank you for your help.

    Files is visible for topic creator and
    support staff only.

    9 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Wences,

    Please try adding the following snippet to your child theme’s functions.php file:

    add_filter('woocommerce_layered_nav_count_maybe_cache', '__return_false');  
    add_filter('etheme_widget_product_categories_cache', '__return_false');

    If the issue persists, kindly provide temporary wp-admin access so that we can check and resolve the problem.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: Wences
    Wences
    Participant

    Hello Jack,

    I tried but same issue.
    I sent credentials in Private.

    Thank you.

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Wences,

    Could you please temporarily disable the CDN on your website? We have tried adding additional widgets to your sidebar area, but they are not appearing, which suggests that there may be some hard caching applied to your content.

    Best regards,
    The 8Theme Team

    Avatar: Wences
    Wences
    Participant

    Hello,

    There is no CDN. I used LiteSpeed Cache to manage the cache.
    I have disabled it.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Wences,

    We have reviewed several possible solutions but were unable to identify the correct one. We believe that the issue may be related to the WPML plugin configuration or missing translations for your product categories or the products assigned to those categories.

    Additionally, please note that the widget in your sidebar is the default WooCommerce widget and is not developed as part of our theme. Therefore, the issue appears to be unrelated to our theme.

    We have not tested the site with the WPML plugin disabled, as we did not have your permission to do so. However, since we found a similar case on their official support forum (https://wpml.org/forums/topic/product-categories-are-not-showing-in-shop-filter/), we recommend contacting WPML support to help identify the source of the issue.

    We look forward to your feedback.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Wences
    Wences
    Participant

    Hello,

    Thank you for your feedback.

    I created a staging environment, then you can test to disabled WPML.
    You can change also the widget.

    Thank you for your help,

    Please contact administrator
    for this information.
    Avatar: Wences
    Wences
    Participant

    Thanks for the support! My topic “Category widget display No product in the category (Front office)” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear Wences,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Wences,

    Thank you for providing us with access to your staging website. We conducted a thorough test by disabling plugins and reviewing various settings that could potentially cause the issue. During our testing with the default theme, the problem did not occur, which indicates that the issue is related to a specific theme setting.

    We discovered that the option “Hide categories with all hidden products” (https://prnt.sc/rzaT_kyMBJsL) triggers this issue when enabled. On your live website, we have already disabled this option and cleared the cache, so all categories should now be displayed correctly (https://prnt.sc/Y1Xkm_Yv5jeO).

    Please check on your side to confirm that everything is working properly.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

The issue related to '‘Category widget display No product in the category (Front office)’' has been successfully resolved, and the topic is now closed for further responses