• Resolved sup3rdan

    (@sup3rdan)


    Using the ‘woocommerce_shipping_fields’ filter i can unset any fields in billing or shipping but not in additonal. How can i unset additional fields? I easily unset eg. phone or company based on cart content but not additional fields.

    Thanks,
    Dan

Viewing 1 replies (of 1 total)
  • Plugin Support Dina S.

    (@themehighsupport)

    You can remove the fields in Additional fields section using woocommerce_checkout_fields filter with priority 1001.

    Please refer to the example code below for more details.

    function wc_remove_checkout_fields( $fields ) {
        unset( $fields['order']['field_name'] );
        return $fields;
    }
    add_filter( 'woocommerce_checkout_fields', 'wc_remove_checkout_fields' ,1001 );

    In the above code, please replace field_name with your field name.

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Override additonal fields’ is closed to new replies.