I am trying to figure out how to export a customer note/”comment”. I have done it before but it’s been several months and I can’t figure out why it isn’t working now.
In the woocommerce/includes/class-wc-checkout.php, I added the following.
However, this information is not appearing in the individual orders or in the exports.
woocommerce_form_field( ‘my_field_for class’, array(
‘type’ => ‘text’,
‘class’ => array(‘my-field-class form-row-wide’),
‘label’ => __(‘Who is eating lunch? Please provide student(s) name & classroom(s)’),
‘placeholder’ => __(‘e.g. Sally/1st, Michael/KH, Parent’),
If you can’t quite figure out the code you need for this or how to do it, then you may need to hire a developer or use an extension like Checkout Field Editor.
Viewing 1 replies (of 1 total)
The topic ‘export a customer note/"comment".’ is closed to new replies.
(@jenrgee)
9 years, 8 months ago
I am trying to figure out how to export a customer note/”comment”. I have done it before but it’s been several months and I can’t figure out why it isn’t working now.
In the woocommerce/includes/class-wc-checkout.php, I added the following.
However, this information is not appearing in the individual orders or in the exports.
woocommerce_form_field( ‘my_field_for class’, array(
‘type’ => ‘text’,
‘class’ => array(‘my-field-class form-row-wide’),
‘label’ => __(‘Who is eating lunch? Please provide student(s) name & classroom(s)’),
‘placeholder’ => __(‘e.g. Sally/1st, Michael/KH, Parent’),
), $checkout->get_value( ‘my_field_name’ ));
echo ‘</div>’;
https://wordpress.org/plugins/woocommerce/