change woocommerce email field to phone number in order tracking form

To modify the code to use the billing_phone instead of the billing email for tracking the order in WooCommerce I have tried to write a part of code for using on my function.php child-theme, but this code not working and when user click on track order button nothing happen and redirected on home page.
Please check my code and give me some advices.

<?php
// override the default order tracking shortcode
function custom_order_tracking_shortcode() {
    remove_shortcode( 'woocommerce_order_tracking' );
    add_shortcode( 'woocommerce_order_tracking', 'custom_order_tracking_shortcode_output' );
}
add_action( 'init', 'custom_order_tracking_shortcode' );

// output the order tracking form and handle the tracking logic
function custom_order_tracking_shortcode_output( $atts ) {
    if ( is_null( WC()->cart ) ) {
        return;
    }

    $atts        = shortcode_atts( array(), $atts, 'woocommerce_order_tracking' );
    $nonce_value = wc_get_var( $_REQUEST['woocommerce-order-tracking-nonce'], wc_get_var( $_REQUEST['_wpnonce'], '' ) );

    if ( isset( $_REQUEST['orderid'] ) && wp_verify_nonce( $nonce_value, 'woocommerce-order_tracking' ) ) {
        $order_id    = empty( $_REQUEST['orderid'] ) ? 0 : ltrim( wc_clean( wp_unslash( $_REQUEST['orderid'] ) ), '#' );
        $order_phone = empty( $_REQUEST['order_phone'] ) ? '' : wc_sanitize_phone_number( wp_unslash( $_REQUEST['order_phone'] ) );

        if ( ! $order_id ) {
            wc_print_notice( __( 'Please enter a valid order ID', 'woocommerce' ), 'error' );
        } elseif ( ! $order_phone ) {
            wc_print_notice( __( 'Please enter a valid phone number', 'woocommerce' ), 'error' );
        } else {
            $order = wc_get_order( apply_filters( 'woocommerce_shortcode_order_tracking_order_id', $order_id ) );

            if ( $order && $order->get_id() && is_a( $order, 'WC_Order' ) && $order->get_billing_phone() === $order_phone ) {
                do_action( 'woocommerce_track_order', $order->get_id() );
                wc_get_template(
                    'order/tracking.php',
                    array(
                        'order' => $order,
                    )
                );
                return;
            } else {
                wc_print_notice( __( 'Sorry, the order could not be found. Please contact us if you are having difficulty finding your order details.', 'woocommerce' ), 'error' );
            }
        }
    }

    wc_get_template( 'order/form-tracking.php' );
}

// override the order tracking form template
function custom_order_tracking_form_template( $located, $template_name, $args, $template_path, $default_path ) {
    if ( 'order/form-tracking.php' === $template_name ) {
        $located = get_stylesheet_directory() . '/woocommerce/order/form-tracking.php';
    }
    return $located;
}
add_filter( 'wc_get_template', 'custom_order_tracking_form_template', 10, 5 );

// create the custom order tracking form template
function create_custom_order_tracking_form_template() {
    $form_tracking_template = <<<HTML
<form action="<?php echo esc_url( wc_get_page_permalink( 'track_order' ) ); ?>" method="post">
    <p><?php esc_html_e( 'To track your order, please enter your order number and mobile number in the boxes below and press the track button. The order number is provided to you through the receipt and SMS sent to you.', 'woocommerce' ); ?></p>
    <div style="display: flex; flex-wrap: wrap;">
        <p class="form-row form-row-first" style="flex: 1; padding-right: 10px;">
            <label for="orderid"><?php esc_html_e( 'Order ID', 'woocommerce' ); ?></label>
            <input class="input-text" type="text" name="orderid" id="orderid" placeholder="<?php esc_attr_e( 'Found in your order confirmation email.', 'woocommerce' ); ?>" />
        </p>
        <p class="form-row form-row-last" style="flex: 1; padding-left: 10px;">
            <label for="order_phone"><?php esc_html_e( 'Billing Phone', 'woocommerce' ); ?></label>
            <input class="input-text" type="text" name="order_phone" id="order_phone" placeholder="<?php esc_attr_e( 'Billing phone number.', 'woocommerce' ); ?>" />
        </p>
    </div>
    <div class="clear"></div>
    <?php wp_nonce_field( 'woocommerce-order_tracking', 'woocommerce-order-tracking-nonce' ); ?>
    <p class="form-row">
        <button type="submit" class="button" name="track"><?php esc_html_e( 'Track', 'woocommerce' ); ?></button>
    </p>
</form>
HTML;

    $dir = get_stylesheet_directory() . '/woocommerce/order';
    if ( ! file_exists( $dir ) ) {
        mkdir( $dir, 0755, true );
    }

    file_put_contents( $dir . '/form-tracking.php', $form_tracking_template );
}
add_action( 'after_setup_theme', 'create_custom_order_tracking_form_template' );
?>

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật