She was trying to add “checkout field editor” code to the functions.php.
The code was:
/**
* Add the field to order emails
**/
add_filter('woocommerce_email_order_meta_keys', 'my_woocommerce_email_order_meta_keys');
function my_woocommerce_email_order_meta_keys( $keys ) {
$keys['How did you hear about us?'] = 'hear_about_us';
return $keys;
}
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
She followed this website instruction: http://docs.woothemes.com/document/add-a-custom-field-in-an-order-to-the-emails/
I’m getting in contact with them now, but is there anything I can do on my own while I’m waiting? One of my team members tried to update some code, hit “update file” and that’s when the website stopped loading. Is this a common problem?