Okay
  Public Ticket #3292869
Checkout page customisation
Closed

Comments

  •  1
    Anni started the conversation

    Hello, it's me again 🙂. Is there a way to adjust the Checkout page fields so that the phone number field would give a tip of the number formatting? The field now has a dim grey text "Phone *". I'd like to change this (and the field in the Shipping address column) to suggest using the international phone number format "Phone * (+1-212-456-7890)".

  • [deleted] replied

    Hi Anni,

    You can change the WooCommerce file to reflect that change but then you need to do the same changes on every WooCommerce plugin update.

    Or (as I saw here) maybe you can do that change by adding this code in the functions.php file of the theme.

    add_filter(  'woocommerce_billing_fields', 'custom_my_account_fields', 20, 1 );
    function custom_my_account_fields( $fields ) {
        $fields['billing_phone']['placeholder'] = '+123456789';
        return $fields;
    }

    I think that there can be plugins that offer this customization too.

    Thanks!