Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1084311
    nickohorny
    Participant

    I am organising my store, and notice on checkout when filling out details there are certain fields required*
    How do you edit this as I do not need phone number as required for example. Thank you.

    #1084312
    nickohorny
    Participant
    This reply has been marked as private.
    #1084605
    Thai
    Moderator

    Hi There,

    To do that, please add the following code under functions.php file locates in child theme:

    add_filter( 'woocommerce_checkout_fields' , 'x_custom_override_default_address_fields', 100 );
    function x_custom_override_default_address_fields( $fields ) {
         $fields['billing']['billing_phone']['required']    = 0;
         return $fields;
    }

    Hope it helps 🙂

    #1084609
    Christian
    Moderator
  • <script> jQuery(function($){ $("#no-reply-1084311 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>