Input field for telephone number

[ad_1]

That is a feature supported by WooCommerce directly and not part of the Address Book plugin, but the Address Book supports any custom fields added to addresses.

You can use this or many of the other address field editors:

Or an example if you wanted to just do this directly yourself.

add_filter( 'woocommerce_shipping_fields', 'custom_override_shipping_fields' );
function custom_override_shipping_fields( $fields ) {
    $fields['shipping_phone'] = array(
        'label'       => __('Shipping Phone', 'woocommerce'),
        'placeholder' => _x('Phone', 'placeholder', 'woocommerce'),
        'required'    => true,
        'class'       => array('form-row-wide'),
        'clear'       => true
    );

    return $fields;
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer