• I added a new field in Order Fields:
    wc_order_field_7198: “Event Location”

    How do I get this to display in emails. I checked the box that says show on order page and show on order email but it doesn’t work

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author heolixfy

    (@heolixfy)

    It only works for email of shop admin. Who don’t see new fields?

    I also need customers to see fields in their emails. For example, I have a field which collects a card message for the gift. The customers need to see that message in their emails so they can confirm that we have the message, and so they can ask us to change it if they have made a mistake.

    Admins are not the only people who need to see the contents of custom fields.

    To accomplish this in the short term, I have commented out lines 471 & 472 of flexible-checkout-field-editor.php as shown:

    // if (!$sent_to_admin)
    // return $fields;

    This appears to be the test which eliminates the extended fields from the non-admin emails.

    Obviously editing the Plugin function files is not a long-term solution. An update to the plugin to add this option is preferable.

    • This reply was modified 7 years, 9 months ago by RJRISO. Reason: include sample code
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Custom Field Data to Emails’ is closed to new replies.