Support » Plugin: WooCommerce » WP Product Filter by category tree desappeared

Viewing 8 replies - 1 through 8 (of 8 total)
  • Philipp Stracker

    (@strackerphil-1)

    It’s listed in 3.2.0 as “Feature – Ajaxified the product category filter on the products screen.”:
    https://github.com/woocommerce/woocommerce/blob/master/CHANGELOG.txt

    As I see the code does not allow the old category tree anymore, but completely switched to the ajax filter.

    I checked the code and did not find a way to revert to the previous logic. But I would LOVE to have the non-ajax category filters back!

    mark8181

    (@mark8181)

    Uhm, they have removed an amazing feature. Very useful to give you a quick overview of all the products listed.

    Do you know any other plugin which would allow to view a category tree?

    thanks,

    vebill

    (@vebill)

    WooCommerce developers said it is because of the new update of WP. Does anyone know how to restore that feature or if it is possible enabling it from any settings?

    same, i have about 30 categories …
    i cannot do almost anything …

    I have highlighted the same issue (because to me is a huge issue) but unfortunately it seems not many people are caring to this plugin missing. instead of improving ……

    I am trying to find an alternative plug-in to replace the built-in one but I cannot find anything useful.

    Any ideas?

    Looking for someone to test this fix:

    // restore old dropdown category filter
    // 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>';
    }

    Thanks, lorro
    great … it’s working for me 🙂

    Plugin Support MechielCouvaras

    (@mechielcouvaras)

    Hi,

    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.

    Hi,
    after upgrading to this new version of woocommerce my client did not like the new filtering option and required it to go back the previous one. :/
    Thanks Loro, this snippet helped me a lot.

    Regards from Brasil

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP Product Filter by category tree desappeared’ is closed to new replies.