@pixelcellar, Thank you so much for the code, I was trying to figure it out myself ??
I put the code into the functions file of my clients child theme
add_filter(‘woocommerce_email_order_meta_keys’, ‘my_woocommerce_email_order_meta_keys’);
function my_woocommerce_email_order_meta_keys( $keys ) {
echo ‘<h2>Miscellaneous Details</h2>’;
$keys[‘Where did you hear about us?’] = ‘wc_customer_source_checkout_field’;
$keys[‘Other’] = ‘wc_customer_source_checkout_other_field’;
return $keys;
}
but get this error
Parse error: syntax error, unexpected ‘Detailsa€?’ (T_STRING), expecting ‘,’ or ‘;’ in /home/casoro/public_html/wp-content/themes/salient-child/functions.php on line 157
Here is a screenshot of the code in the file
https://www.clipular.com/c/5250961420582912.png?k=m1iRuvNI-ITuL20b9YM9eoXxjho
Any help would be great ??
Thank you
Tanya