Filter products by categories doesn’t synchronised

This topic has 5 replies, 3 voices, and was last updated 1 weeks, 6 days ago ago by Andrew Mitchell

  • Avatar: Elvis
    Elvis
    Participant
    May 4, 2024 at 05:25

    I’m using xstore Filter products by categories widget as filter item for shop page. However it doesn’t sync the lastest product info

    In the example, there’s a earings category which has 16 products, But from the page view the product count is 2. If you click the it, the product list can display the right result.

    The page view even can’t display all of the categories we have such like necklace and ring.

    It seem can’t sync the categories properly. Please help

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    4 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    May 4, 2024 at 11:22

    Dear Elvis,

    We hope this message finds you well. We wish to inform you that we have disabled the cache for the categories widget, and the product count should now be accurately reflected.

    https://prnt.sc/bMZNnEquGAAv

    Could you kindly verify this at your earliest convenience?

    Thank you for your attention to this matter.

    Best regards,
    The 8Theme Team

    Avatar: Elvis
    Elvis
    Participant
    May 4, 2024 at 11:30

    Thanks. Now the product count is accurately reflected.

    However not all of the categories are displayed in the filter. Necklace and ring are still missing from the filter field.

    By the way how can I disabled the cache for the categories widget?

    Avatar: Justin
    Luca Rossi
    Support staff
    May 4, 2024 at 11:53

    Hi @Elvis,

    Could you please check again?

    We’ve used this code to disable the cache of Categories Filter Widget:

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

    Best regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    May 4, 2024 at 14:19

    Dear Elvis,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Filter products by categories doesn’t synchronised’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.