With the following code I am able to add a prefix and a suffix to WooCommerce order number:
add_filter( 'woocommerce_order_number', 'change_woocommerce_order_number' );
function change_woocommerce_order_number( $order_id ) {
$prefix = 'VK/';
$suffix = '/TS';
$new_order_id = $prefix . $order_id . $suffix;
return $new_order_id;
}
How we can prefix the order number with shop manager initials sequentially from an array of shop managers initials?
This way we can assign equally WooCommerce orders to each one of them.
Any help?