Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]

The meta box template for the variations is defined in the file html-variation-admin.php. There you will find the hook “woocommerce_variation_options_pricing”. With this hook you can add your input field to the desired place.

function variation_settings_fields($loop, $variation_data, $variation)
{
    // Your Text Field
    woocommerce_wp_text_input(
        array(
            'id' => '_text_field[' . $variation->ID . ']',
            'label' => __('My Text Field', 'woocommerce'),
            'placeholder' => 'http://',
            'wrapper_class' => 'form-row',
            'desc_tip' => 'true',
            'description' => __('Enter the custom value here.', 'woocommerce'),
            'value' => get_post_meta($variation->ID, '_text_field', true)
        )
    );
}

add_action('woocommerce_variation_options_pricing','variation_settings_fields');

WooCommerce variations meta box with the custome field between price and the stock field