I seem to have an incompatibility with the plugin and admin custom order fields.
The easiest way to reproduce the problem is to install the “WooCommerce Admin Custom Order Fields” plugin. When installed, adding or changing data in the custom field within the admin order section fails. No update is done, and it reverts to the original value.
I have tried writing custom snippets and using:
$order = wc_get_order( $order_id );
$order->update_meta_data( ‘my_custom_field’, wc_clean( $_POST[ ‘my_custom_field’ ] ) );
$order->save();
and no data is written to the meta database.
Correct functionality for the Admin Custom Fields is restored if the COG plugin is diabled.
Has anyone else had this issue or does anyone else successfuly run COG and ACF together?
Thanks so much,
-Paul