Tagged: x Author Posts January 3, 2017 at 3:10 am #1313866 danParticipant In my country we don’t use the zip codes/postcodes too much and many people have no idea what’s their postcode. How can i make it an optional field instead being a required field? January 3, 2017 at 3:11 am #1313867 danParticipant This reply has been marked as private. January 3, 2017 at 3:34 am #1313888 Paul RModerator Hi, To make it optional, you can add the code below in your child theme’s functions.php file(wp-content/themes/x-child/functions.php). add_filter( 'woocommerce_default_address_fields' , 'custom_override_default_postcode_fields' ); function custom_override_default_postcode_fields( $postcode_field ) { $postcode_field['postcode']['required'] = false; return $postcode_field; } Hope that helps. January 3, 2017 at 1:52 pm #1314656 danParticipant It works perfect! Thanks a lot ! January 3, 2017 at 2:49 pm #1314770 JadeModerator You’re welcome. Author Posts <script> jQuery(function($){ $("#no-reply-1313866 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script> Log In Username: Password: Keep me signed in Log In