Ecommerce Shopify WordPress Discussion

Snippet for showing checkout notes in Woocommerce order admin table, adapting for HPOS

I have the following code which shows the customer note as a tooltip in a new column in the order admin page in Woocommerce. When changing to HPOS it needs som changes, could anyone help me with that? add_filter( 'manage_edit-shop_order_columns', 'custom_shop_order_column', 90 ); function custom_shop_order_column( $columns ) { $ordered_columns = array(); foreach( $columns as $key => $column ){ $ordered_columns[$key] = $column; if( 'order_date' == $key ){ $ordered_columns['order_notes'] = __( 'Notat', 'woocommerce'); } } return $ordered_columns; } add_action( 'manage_shop_order_posts_custom_column' , 'custom_shop_order_list_column_content', 10, 2 ); function custom_shop_order_list_column_content( $column ) { global $post, $the_order; $customer_note = $post->post_excerpt; if ( $column == 'order_notes' ) { if ( $the_order->get_customer_note() ) { echo '<span class="note-on customer tips" data-tip="' . wc_sanitize_tooltip( $the_order->get_customer_note() ) . '">' . __( 'Yes', 'woocommerce' ) . '</span>'; } } } // Set Here the WooCommerce icon for your action button add_action( 'admin_head', 'add_custom_order_status_actions_button_css' ); function add_custom_order_status_actions_button_css() { echo '<style> td.order_notes > .note-on { display: inline-block !important;} span.note-on.customer { margin-right: 4px !important;} span.note-on.customer::after { font-family: woocommerce !important; content: "\e026" !important;} </style>'; } I tried to adapt the code but my php knowledge is just not good enough.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.