Support » Plugin: WooCommerce » Product Category Filter Not Showing Up After Update

  • Resolved cdixonsu

    (@cdixonsu)


    Since updating WooCommerce, the product category filter when I go to Products, wp-admin/edit.php?post_type=product, does not show up. There is an empty filter box but there are no categories in it, it is just blank.

    • This topic was modified 3 years, 6 months ago by cdixonsu.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter cdixonsu

    (@cdixonsu)

    Thanks but I do not see please enter 3 characters. Just a small empty drop down box. I only have 10 categories. See screenshot https://imgur.com/a/9d4VI

    I got this with Yoast installed. It looks like the Yoast drop-downs squash the category box. Test by temporally deactivating Yoast. In my case, just clicking the down arrow on the category drop-down caused all the boxes the rearrange on the next row down and all was well. Have you clicked the down-arrow? If that doesn’t work, hard reload the page or clear your browser cache to ensure up-to-date styles are loaded. Ensure Yoast is up-to-date.

    Thread Starter cdixonsu

    (@cdixonsu)

    I cleared cache, deactivated Yoast, no luck, still a small empty drop down. I also checked and it is up to date. When I click on the small, empty drop down box, nothing happens.

    Please post the url for your site.

    I have the same problem .
    Is there any way to solve it ?

    You are looking at the new WooCommerce ajax category filter. You can put the old one back with this snippet:
    https://pastebin.com/qduTpuCa

    In function.php works like a charm! Thank you so much!!!

    I just had to remove <?php from top

    ————————
    // restore old dropdown category filter on admin products page
    // snippet goes in functions.php for your child theme if you have one, or you can use the “My Custom Functions” plugin
    add_action( ‘restrict_manage_posts’, ‘wcacd_category_dropdown’, 15 );
    function wcacd_category_dropdown() {
    // show the old dropdown category filter from WC 3.1.2
    wc_product_dropdown_categories( array( ‘option_select_text’ => __( ‘Filter by category’, ‘woocommerce’ ) ) );
    // hide the WC 3.2+ ajax category filter
    print ‘<style>.post-type-product .tablenav div .select2 {display:none;}</style>’;
    }

    • This reply was modified 3 years, 4 months ago by dunies2.
    Plugin Support MechielCouvaras

    (@mechielcouvaras)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    I just updated WooCommerce today and I also got this problem.

    Like lorro said I can also see this problem when Yoast SEO is active, as soon as Yoast is activated I am not able to use the filter anymore!

    I now had to reactivate the old style drop down which is linked in this thread here.

    So, not really resolved?!

    • This reply was modified 3 years, 4 months ago by lws-mo.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Product Category Filter Not Showing Up After Update’ is closed to new replies.