want to assign the orders manually to the vendor show them in dokan deshboard but the client can’t register himself can’t add products

[enter image description here](https://i.sstatic.net/nSm0fMlP.png)

Hello experts I need to ask about one of my client website that my client wants to add the vendor and to create the him a username and password by him self so that he can assign them a order in woocommerace but woocommerce don’t provide such feature so I added acf field to get the vendor list now we can select the vendor but when we update and goes to vendor Dokan deshboard the order which we assign to him is not showing if anyone have a solution olz help me

// Function to show WooCommerce orders assigned to the current Dokan vendor based on a custom ACF field
function show_orders_assigned_to_vendor_by_username() {
    // Check if the current user is a Dokan vendor
    if (!dokan_is_user_seller(get_current_user_id())) {
        return; // If not a vendor, exit
    }

    // Get the current vendor's username or email
    $current_vendor_username = wp_get_current_user()->user_login; // Get current user's username

    // Query for WooCommerce orders where the ACF field matches the current vendor's username
    $args = [
        'post_type' => 'shop_order',
        'post_status' => [
            'wc-processing',
            'wc-completed',
            'wc-pending',
            'wc-on-hold',
            'wc-cancelled',
            'wc-refunded',
            'wc-failed',
        ],
        'meta_query' => [
            [
                'key' => 'assigned_vendor', // ACF field key
                'value' => $current_vendor_username, // Vendor's username to compare
                'compare' => '=',
            ],
        ],
        'orderby' => 'date',
        'order' => 'DESC',
    ];

    $orders = new WP_Query($args);

    // Display the list of orders in the Dokan vendor dashboard
    if ($orders->have_posts()) {
        ?>
        <h2>Orders Assigned to You</h2>
        <ul>
            <?php
            while ($orders->have_posts()) {
                $orders->the_post(); // Set up the post data
                $order_id = get_the_ID(); // Get the order ID
                $order = wc_get_order($order_id); // Get WooCommerce order object

                // Display basic order information
                ?>
                <li>
                    Order ID: <?= $order_id ?> - 
                    Date: <?= $order->get_date_created()->format('Y-m-d') ?> - 
                    Status: <?= wc_get_order_status_name($order->get_status()) ?> 
                </li>
                <?php
            }
            ?>
        </ul>
        <?php
    } else {
        ?>
        <p>No orders assigned to you.</p> 
        <?php
    }

    wp_reset_postdata(); // Reset the global post data
}

// Hook into the Dokan vendor dashboard to display the custom section
add_action('dokan_dashboard_content_inside_before', 'show_orders_assigned_to_vendor_by_username'); // Adjust the hook if needed

I need to solve the problem for my website