Customize WooCommerce Order Details Fields

I need help with something that I cant find any information online.

I want to change a label in WooCommerce custom page as shown in the example.

Read More

I customized checkout so I dont need address info. I would only require to show the name in that section.

enter image description here

What hooks should I use?

I appreciate your time and help. Thanks

Related posts

1 comment

  1. From my tutorial on customizing checkout fields here’s an example of how to display data on that panel:

    // display the extra data in the order admin panel
    function kia_display_order_data_in_admin( $order ){  ?>
        <div class="order_data_column">
            <h4><?php _e( 'Extra Details', 'woocommerce' ); ?></h4>
            <?php 
                echo '<p><strong>' . __( 'Some field' ) . ':</strong>' . get_post_meta( $order->id, '_some_field', true ) . '</p>';
                echo '<p><strong>' . __( 'Another field' ) . ':</strong>' . get_post_meta( $order->id, '_another_field', true ) . '</p>'; ?>
        </div>
    <?php }
    add_action( 'woocommerce_admin_order_data_after_order_details', 'kia_display_order_data_in_admin' );
    

Comments are closed.