# Checkout Field Editor by WooCommerce

YayMail Pro offers shortcodes that allow you to insert various data points into your email templates.

Here's how to display checkout fields with shortcode, also known as order meta, in YayMail editor:

### Identify the checkout field&#x20;

You'll need to know the unique ID of the specific checkout field you want to display. This can be found by editing the field in **WooCommerce** > **Checkout Fields**.

In the screenshot below, the checkout field ID is `date`.

<figure><img src="/files/gIsDy1edUXGi0FOPv6X1" alt=""><figcaption><p>Add Checkout Field</p></figcaption></figure>

When customers proceed to checkout, they will be required to fill out their information.

<figure><img src="/files/s4YBypIzM9oGSX4LRBDG" alt=""><figcaption><p>Checkout Field in checkout page</p></figcaption></figure>

### Insert the shortcode

Within your YayMail email template editor, insert the following shortcode to output the customer data value.

You can find the shortcode for that order meta by clicking on the list of **Order Meta** and selecting the checkout field that you need:

<figure><img src="/files/ZWEjvSHOZ321tgvpPTGd" alt=""><figcaption><p>Data in YayMail</p></figcaption></figure>

In this case, it is `[yaymail_order_meta:date]` that outputs the Delivery Date of the order.

<figure><img src="/files/bTLj7t9tpwk1uFRHS6in" alt=""><figcaption><p>Shortcode Generated</p></figcaption></figure>

Feel free to send a test email or place an actual order to see how it looks in your email client.

<figure><img src="/files/jQIfbTD7Y0opBgH0bMJd" alt=""><figcaption></figcaption></figure>

That's it! Now you can go ahead and add your own checkout fields to customer emails!

*Happy customizing!*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaymail/integrations/checkout-field-editor-by-woocommerce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
