WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Order Notes Not Showing in Comments, Not Searchable

[Resolved] Order Notes Not Showing in Comments, Not Searchable

  • jraffucci
    Member

    @jraffucci

    After upgrading to the 2.1 series of Woocommerce we noticed that all our order notes disappeared from the comments section of the WordPress Admin.

    When inspecting the comments table I can see that all the WooCommerce notes are there but not displayed in comments section and not selectable by filter. Is there a way to fix this?

    Thank you in advance.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Wheeliebrenn
    Member

    @wheeliebrenn

    I too am experiencing this problem. Any suggestions are appreciated.

    jraffucci
    Member

    @jraffucci

    Hi Wheeliebrenn,

    I was recently shown this snippet by the Woocommerce support team. This brought back the original behavior for me.

    remove_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ) );

    Hope this works for you.

    Wheeliebrenn
    Member

    @wheeliebrenn

    Wow, thank you so much for taking the time to let me know the solution!

    Is it safe to assume that this get plugged into my theme’s functions.php file?

    jraffucci
    Member

    @jraffucci

    Yes sir, functions.php

    🙂

    Wheeliebrenn
    Member

    @wheeliebrenn

    Wow. It worked perfectly.

    Thanks again!

    Brenn

    jraffucci
    Member

    @jraffucci

    No problem! Marking as solved!

    Wheeliebrenn
    Member

    @wheeliebrenn

    Alas, the ability to filter by order notes is not present in the Comments Filters. Only All Comment Types, Comments, and Pings appear in the dropdown.

    At least I will be able to manage the order notes better now.

    Wheeliebrenn
    Member

    @wheeliebrenn

    Although this help allowed me to once again reveal the Order Notes within the WordPress Comments Admin panel, it also revealed the order notes in a “Recent Comments” widget on my site’s front end which I cannot have.

    Oh well, I’ll go back to phpMyAdmin to manage the order notes.

    jraffucci
    Member

    @jraffucci

    That is strange, it sounds like a bug report will be needed. I never tested it against all comments.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Order Notes Not Showing in Comments, Not Searchable’ is closed to new replies.