# FooEvents for WooCommerce

**FooEvents for WooCommerce** lets you sell event tickets directly from your WooCommerce store with no third-party fees. Now, with **YayMail** integration, you can easily display ticket booking details in your custom WooCommerce emails for a seamless attendee experience.

**Step 1: Create an Event product**

First, you need to create an event product, and under **Event Settings > Is this product an event?**, make sure to select **Yes**.

<figure><img src="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FW3qPodYhAesdz7XupMih%2Fimage.png?alt=media&#x26;token=cad173be-a931-42bd-8bca-9011b2c67efc" alt=""><figcaption></figcaption></figure>

Scroll down and check the options as shown in the image.

<figure><img src="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FmJ6xshpypxRs1088co7j%2Fimage.png?alt=media&#x26;token=101cbfa4-b242-468a-80c7-cd01b7ec30c4" alt=""><figcaption></figcaption></figure>

**Step 2: Add FooEvent Ticket Details to email template in YayMail panel**

In YayMail email builder, choose **template** email that you want to add booking information, drag and drop a Text block to the email template.

Choose a real order.

On the text editor, you will see a **Shortcode** dropdown > choose **FooEvents** > **FooEvents Ticket Details.** This will automatically insert booking details into the customized email template.

<figure><img src="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FpZreoPJ7XhzlQrqq55w6%2Fimage.png?alt=media&#x26;token=d55e8a33-6623-4a9b-a279-e3517fe178da" alt=""><figcaption></figcaption></figure>

And don't forget to Save and enable the template.

After completing the steps above, each time this template is sent, it will include the booking information from FooEvent Ticket.
