I want to remove some field in checkout but Xstore having no option to delete or edit field Postcode

This topic has 3 replies, 2 voices, and was last updated 7 months, 2 weeks ago ago by theimportedproductswebsite

  • Avatar: theimportedproductswebsite
    theimportedproductswebsite
    Participant
    May 7, 2025 at 15:53

    respected sir i have no need to (Postcode / zip) field in checkout Page, and also no need to Required Email Field, Sir Xstore having no option to edit or delete to postcode field in checkout page
    so please help us
    thanks

    2 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    May 8, 2025 at 05:59

    Hi @theimportedproductswebsite,

    Please try adding the following under functions.php file loacates in your child theme:

    
    add_filter( 'woocommerce_checkout_fields', 'bbloomer_simplify_checkout_virtual' );
    function bbloomer_simplify_checkout_virtual( $fields ) {
        unset($fields['billing']['billing_postcode']);
        return $fields;
    }
    
    add_filter('woocommerce_billing_fields', 'custom_billing_fields', 1000, 1);
    function custom_billing_fields( $fields ) {
        $fields['billing_email']['required'] = false;
        return $fields;
    }
    

    Hope it helps!

    Avatar: theimportedproductswebsite
    theimportedproductswebsite
    Participant
    May 8, 2025 at 06:29

    Thanks for the support! My topic “I want to remove some field in checkout but Xstore having no option to delete or edit field Postcode” has been successfully resolved.

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘I want to remove some field in checkout but Xstore having no option to delete or edit field Postcode’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.