Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #15953


    Since customizing my checkout page, I changed what used to be the phone number requirement (under the Billing Address side) to say ‘Special Instructions’. Since this was formerly a required field where you had to add phone numbers and I am now asking for an answer that doesn’t require numbers, my customers can’t check out.

    So is there any special quick css code where I can override this particular field as a requirement and also is there any code I can add to make the field larger- say the size of the Order Notes section?

    Thanks for your help,


    If you need to see the site it is


    Add following code to the bottom of functions.php:

    // Hook in
    add_filter( 'woocommerce_checkout_fields' , 'inoplugs_override_checkout_fields' );

    // Our hooked in function - $fields is passed via the filter!
    function inoplugs_override_checkout_fields( $fields ) {
    $fields['billing']['billing_phone']['required'] = false;
    return $fields;


    Hi Peter,

    I found the functions.php under wp-includes– I’m assuming there is only one functions.php file.

    It did not seem to work. Any other suggestions?

    Thank you,



    Hi Minnoe,

    The functions.php file is in the theme’s main folder. You shouldn’t eve modify the actual wordpress core files unless you really know what its changing.

    So you’ll go to wp-content>themes>abundance>functions.php and add it in there.




    Okay Thanks for your help Devin.

    I seem to have most of it sorted now.

    Now I need instructions on how to override that option beside the Shipping Address- the little check-off box that gives the customer the option to Ship to billing address. I’d don’t want them to have that option at all so I do I make that part disappear?



    One further question.

    I’ve managed to insert an extra field under the Shipping Address. If you go to my site you can see it reads Recipient Phone # and Delivery Date.

    However when I sent a fake order to myself, the information under that field didn’t seem to stick or get sent to me when Woo Commerce sends me the New Customer Order form. Could you tell me what further info. I need to add to I guess– validate the field when the checkout form gets posted and please be specific about which folder/file I need to add it in.

    Thanks in advance,



    Thanks Peter. Will definitely take a look at that.

    Incidentally, if worse came to worse and I wanted to revert to the original check-out form– would deactivating and then reactivating the woocommerce plug-in do the trick? Does that also mean all the products I uploaded get lost or does that part get saved?

    Thank you,




    No, you’ll need to reupload the files because the code changes persist even if you deactivate the plugin. However you can deactivate/reactivate woocommerce without loosing any settings.

    Best regards,


Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Customizing Check Out’ is closed to new replies.