Orders Page When WooCommerce HPOS Is Enabled

Support Meta Box AIO Orders Page When WooCommerce HPOS Is Enabled

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43710
    Bryan SohBryan Soh
    Participant

    Hi,

    Greetings!

    I want display extra information in the Orders Page of WooCommerce. The Orders Page used to be "edit.php?post_type=shop_order" before High-Performance Order Storage (HPOS) rolled out and the codes below worked fine. However, now with HPOS enabled, the Orders Page has become "admin.php?page=wc-orders". May I know how do I alter the following code so that the extra information (Vehicle) can be displayed?

    add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) {
        $meta_boxes[] = array(
            'title'      => 'Vehicle Info',
            'post_types' => 'shop_order',
            'fields'     => array(
                array(
                    'name'          => 'Vechicle',
                    'id'            => 'vehicle',
                    'type'          => 'text',
                    'admin_columns' => true, // Just show this column
    				'position'   => 'after action',
                ),
            ),
        );
        return $meta_boxes;
    } );
    

    Thanks!

    #43713
    PeterPeter
    Moderator

    Hello Bryan,

    When enabling the HPOS feature, the order page works like a settings page and the data is synced to the custom table of WooCommerce so the field group won't display there. I will inform the development team to consider supporting this feature in future updates.

    #46068
    dasselsdassels
    Participant

    Hi, can we get an update on this? I have a similar situation going on and wondering if there is a work around we can use in the meantime until this gets fixed.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.