I added three fields extra to my WooCommerce checkout (CVR nummer, reference nummer and ønsket leveringsdato). They show up correctly in the checkout but once the order is placed, the information is not sent to the WooCommerce backend/order overview. How do I send over the information so we receive it?
function add_woocommerce_billing_fields($billing_fields){
//reorder woo my billing address form fields
$billing_fields2['billing_first_name'] = $billing_fields['billing_first_name'];
$billing_fields2['billing_last_name'] = $billing_fields['billing_last_name'];
$billing_fields2['billing_vat'] = array(
'type' => 'text',
'label' => __('CVR nummer', 'keyelp-shop-customization' ),
'class' => array('form-row-wide'),
'required' => true,
'clear' => true
);
$billing_fields2['billing_ref'] = array(
'type' => 'text',
'label' => __('Reference nummer', 'keyelp-shop-customization' ),
'class' => array('form-row-wide'),
'required' => false,
'clear' => true
);
$billing_fields2['billing_date'] = array(
'type' => 'text',
'label' => __('Ønsket leveringsdato', 'keyelp-shop-customization' ),
'class' => array('form-row-wide'),
'required' => false,
'clear' => true
);
$merged_billing_fields = $billing_fields2 + $billing_fields;
return $merged_billing_fields;
}