customization - Woocomerce custom billing address fields display in order details

admin2025-06-04  12

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

In woocommerce I register a custom billing field to can track the house number separately

function addCheckoutHouseNrField($fields)
{
    $fields['billing_house_nr'] = array(
        'label' => __('Hausnummer'),
        'type' => 'text',
        'class' => array('form-row-wide'),
        'priority' => 35,
        'required' => true,
    );

    return $fields;
}

add_filter('woocommerce_billing_fields', 'addCheckoutHouseNrField');

which works fine. But how do I display this field after address_1 in emails and backend order details

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749015506a315635.html

最新回复(0)