Skip to content
00Days
00Hours
00Mins
00Secs
Black Friday: 50% off Zapify Pro Black Friday & Cyber Monday — use code BFCM26 at checkout. Ends 3 December.

How to Book a Customer Into a Modern Events Calendar Event When They Buy a WooCommerce Product

Some events come bundled with a membership, a course or a kit. Making the customer book separately is one more step they can forget. Zapify can book their place the moment they buy, using the free A product is purchased trigger and the Register the user for an event action. Modern Events Calendar is a Zapify PRO integration.

What this automation does

The automation is one trigger plus one action:

  • Trigger: A product is purchased (WC_PRODUCT_PURCHASED, WooCommerce)
  • Action: Register the user for an event (MEC_BOOK_USER, Modern Events Calendar)

PRO feature

Modern Events Calendar is a Zapify PRO integration. The booking action needs an active Zapify PRO licence. The A product is purchased trigger is free.

The customer needs a WordPress account

The booking is made for a WordPress user. If the customer checks out as a guest, there is nobody to book and the step fails with a message saying so. Turn on account creation at checkout.

It books without taking payment

This action creates a confirmed booking directly, with no payment step, because the customer has already paid through WooCommerce. It also skips MEC's checkout form, so use it for events where the product purchase is the booking.

No Connection needed

WooCommerce and Modern Events Calendar run on your own site, so there is no API key to paste and nothing to set up under Settings → Connections.

Before you start

  • WooCommerce and Modern Events Calendar installed and active, with booking switched on for the event.
  • The product whose purchase includes a place at the event.

How to build the automation

Step 1: Create a new automation

  1. In the WordPress admin, go to Zapify → Automations.
  2. Click Add New to open the builder.
  3. Name it clearly, such as Book customers into an event.

Create a new automation

Step 2: Add the "A product is purchased" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose WooCommerce as the app.

Select WooCommerce as the trigger

  1. Select the trigger A product is purchased.

Select A product is purchased

  1. In the Product field, pick the product that includes the event, or leave it on Any to include every product.

The trigger fires when the order reaches a paid status such as Processing or Completed, not while it is still Pending payment.

Step 3: Add the "Register the user for an event" action

  1. Click Add Action.

Add an action

  1. Choose Modern Events Calendar as the app.

Select Modern Events Calendar as the action app

  1. Select Register the user for an event.

Select Register the user for an event

Step 4: Configure the action

Field Required What it does
Event Yes Pick the event to book.
Ticket No Pick the ticket. Choose the event first; the list then shows that event's tickets. Leave empty to use the first ticket.
Date No For a repeating event: the day to book, as YYYY-MM-DD. Leave empty for the event's first date.
Number of spaces No How many places to book. Defaults to 1. There is a safety limit of 50 per run.
Send MEC's notifications No On by default. Announces the booking as confirmed so Modern Events Calendar sends its own emails.

Leave Ticket empty to book the event's first ticket, or pick a specific one, such as a free Member ticket. For a repeating event, enter the date you want in Date.

Step 5: Set the steps Live and save

Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.

  1. Set the trigger and every action to Live.
  2. Click Save.

Set the automation live

Step 6: Test it

Buy the product as a test customer. Open MEC → Bookings to see the new confirmed booking, or open Zapify → Logs to confirm the run.

Tokens you can use

Token What it holds
Attendee name / Attendee email Who the booking is for.
Booking ID The booking's number.
Booking status Where the booking stands, such as approved or cancelled.
Tickets The tickets booked, for example Adult × 2.
Number of spaces How many places the booking takes.
Event title / Event URL The event and a link to it.
Event start / Event end When it begins and ends.
Venue name Where it takes place.
Event ID The numeric ID, for advanced use.

The tokens above come from the Modern Events Calendar triggers. In this automation the trigger is WooCommerce, so use its order tokens in the action.

Conclusion

With the free A product is purchased trigger and the Register the user for an event action, buying a product can reserve a seat with no extra step for the customer. To follow up with a message of your own, see sending an email when a booking is confirmed.

FAQs

Is this free in Zapify?

The A product is purchased trigger is free, but the Modern Events Calendar action is part of the PRO integration and needs an active Zapify PRO licence.

Will the customer get a confirmation email?

By default yes. With Send MEC's notifications ticked, Zapify announces the booking as confirmed so Modern Events Calendar sends its own emails. Untick it to book silently.

Does it check that the event still has space?

No. It books the number of places you ask for, up to 50 per run, without checking ticket limits. Use a product with limited stock if places are limited.

Does it work for repeating events?

Yes. Enter the day in Date as YYYY-MM-DD. Leave it empty to book the first date.

Do I need to write any code?

No. Everything is configured visually in the Zapify builder.

Was this page helpful?