Public Ticket #3817502

Unable to Include "Pending for Approval" Orders in Export

Closed
Comments
11 Tickets 5
loranz started the conversation 2 years ago on February 10, 2025 at 10:43am

Hello

I am writing to request assistance with the "Order Export for WooCommerce" plugin. I have noticed that orders with the status "Pending for Approval" do not appear in the plugin interface, which prevents me from including them in the export process.

I have looked through the plugin settings and documentation but have not found an option to include orders with this specific status. Could you please advise if there is a way to export these orders or if there is a workaround available?

Thank you for your help.

2,762
KingsPlugins replied 2 years ago on February 19, 2025 at 10:48pm

Hi there,

I understand that you are using the "order approval" feature where a subaccount places an order for approval,

And I understand you are looking to also show these orders in the backend admin Orders page area? (or where are you looking to show them?)

 

You can do the following for that:

(1) Add this PHP snippet to the site to functions.php or a snippets plugin:

add_action('init', function(){
	register_post_status( 'wc-pcompany', array(
		'label'		=> esc_html__( 'Pending Company Approval', 'b2bking' ),
		'public'	=> true,
		'show_in_admin_all_list'    => true,
		'show_in_admin_status_list' => true, // show count All (12) , Completed (9) , Credit purchase (2) ...
		'label_count'	=> _n_noop( 'Pending company approval (%s)', 'Pending company approval (%s)' )
	) );

}, 10000);

(2) You can now find this area in the backend orders page:

9912706476.png

 

Kind regards,

Stefan

Sign In