Support » Plugin: WooCommerce » Can’t see customer notes

  • Resolved Pedalkraft

    (@pedalkraft)



    I love WooCommerce, but since the last update there have been some frustrating feature changes:
    1. The main issue for me being that we can no longer see if the customer has left a note at checkout.
    Is there a workaround so I can at a glance see whether a customer has left a note? It’s not convenient to open every single order when processing, but I do need to know if they have left special instructions.
    2. The ‘item purchased’ column is still missing – I am using a secondary plugin to bring this column back, but it’s buggy, and I can’t understand why it is no longer part of WooCommerce, surely this is one of the most important columns in the order view?
    Thanks!

    • This topic was modified 7 months ago by  Pedalkraft.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    The “extra notes” left at checkout is generally not something needed to be seen on an overview page. For example, what does this information provide out of context from the whole order? It would generally only really matters when fulfilling the order, which you would be clicked into the order at that point.

    Items purchased was removed for performance reasons. Querying every order and every order item on the page didn’t scale well.

    For #1, here is a code snippet to bring it back: https://wordpress.org/support/topic/customer-messages-and-notes-no-longer-displaying-in-separate-column/

    For #2, there are a couple of plugins for this, so perhaps try another 🙂

    lorro

    (@lorro)

    Similar code with order notes but also with order items:

    add_filter( 'manage_shop_order_posts_columns', 'set_shop_order_posts_columns', 99 );
    function set_shop_order_posts_columns( $columns ) {
      // $columns['unwanted_column'] = 'Unwanted column'; // comment out any unwanted columns
      $columns['order_items'] = 'Order items';
      $columns['order_notes'] = 'Order notes';
      return $columns;
    }
     
    add_action( 'manage_shop_order_posts_custom_column' , 'show_custom_columns', 10, 2 );
    function show_custom_columns( $column_name, $post_id ) {
      switch ( $column_name ) {
        case 'order_items':
          $order = new WC_Order( $post_id );
          $order_items = $order->get_items();
          $nr = 1;
          foreach( $order_items as $order_item ) {
            print $nr.') '.$order_item->get_name().'<br>';
            $nr++;
          }
          break;
        case 'order_notes':
          $order = new WC_Order( $post_id );
          $note = $order->get_customer_note();
          // choose one of the following print statements
          // print $note;
          print $note ? 'Yes' : '';
          break;
      }
    }
    printworxuk

    (@printworxuk)

    Hi, when i add that code snippet to my functions.php it changes my site to a blank white page.
    as soon as its removed it works again.
    I’m looking for a snippet to add notes back to the plugin (as it should be!) and order items also, (also an important piece of information.)

    Why they removed these options i really dont know, surely it should be up to us if we have those options or not?
    can anyone shed any light?

    lorro

    (@lorro)

    The code works for me. Suggest adding it again and check: if your functions.php ends with a ?>, this terminates php so either remove that or start php again with a <?php line. Ensure you are using straight quotes and not smart quotes. Try pasting the whole of your edited functions.php here to validate it:
    http://phpcodechecker.com/

    The validation should say “there is 1 more closing parenthesis ‘)’ found”, this is the bracket after the item number. Any other or errors need to be addressed.

    Ultimately you could post your functions.php in pastebin.com (free for guests) and post the link here and others can take a look.

    The snippet will add notes and order item columns into the order table – if you can get it working!

    The columns were removed to reduce page loading time for the benefit of users with lots of orders.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t see customer notes’ is closed to new replies.