Category : orders

I have a custom column in the WooCoomerce admin order list that displays customer notes. I only want to show the notes in the order list if the order is in a specific custom status wc-autoquote. Is this possible to filter this out for all other order statuses? Code for my custom column: add_filter(‘manage_edit-shop_order_columns’, ‘add_customer_note_column_header’); ..

Read more

I used this code for displaying the product attributes in the order details/editor add_action( ‘woocommerce_admin_order_item_headers’, ‘custom_admin_order_items_headers’, 20, 1 ); function custom_admin_order_items_headers( $order ){ echo ‘<th>’; echo __(‘Location’, ‘woocommerce’) . ‘</th>’; } add_action(‘woocommerce_admin_order_item_values’, ‘my_woocommerce_admin_order_item_values’, 10, 3); function my_woocommerce_admin_order_item_values($product, $item, $item_id = null) { echo ‘<td>’ . get_the_term_list( $product->get_id(), ‘pa_location’, ”, ‘,’, ” ) . ‘</td>’; } ..

Read more