• Resolved bahram021

    (@bahram021)


    Hello. Thanks for your good plugin, I had a question.

    I defined the name billing_address_1 and the type textarea for the address field. But the address field is still displayed as a single line. How can I change this field to multi-line or paragraph so that the customer can type his address more easily.

    Thanks

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

    (@themehighsupport)

    Kindly be informed that billing_address_1 is a default WooCommerce field, and modifying or overriding it could cause unexpected issues on your site.

    Further, you can achieve your requirement by adding the below code in your child theme’s functions.php file.

    add_filter( 'woocommerce_billing_fields', 'customize_billing_address_field_as_textarea' );

    function customize_billing_address_field_as_textarea( $fields ) {
        if ( isset( $fields['billing_address_1'] ) ) {
            $fields['billing_address_1']['type'] = 'textarea';
        }

        return $fields;
    }

    We hope this will help!

    Have a great day!

Viewing 1 replies (of 1 total)

The topic ‘Multi-line address field’ is closed to new replies.