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 Register a Customer for a WP Event Manager Event When They Buy a WooCommerce Product

When an event comes with a product, the customer should not have to fill in a second form. Zapify can register them the moment they buy, using the free A product is purchased trigger and the Register an attendee for an event action. WP Event Manager 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 an attendee for an event (WPEM_REGISTER_ATTENDEE, WP Event Manager)

PRO feature

WP Event Manager is a Zapify PRO integration. The registration action needs an active Zapify PRO licence. The A product is purchased trigger is free.

Needs the Registrations add-on

The action creates a registration the way the Registrations add-on's own form does, so the add-on must be active.

Nobody is registered twice

If the email address is already registered for the event, the step is skipped instead of creating a duplicate.

No Connection needed

WooCommerce and WP Event Manager 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, WP Event Manager and its Registrations add-on installed and active.
  • 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 Register customers for 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 an attendee for an event" action

  1. Click Add Action.

Add an action

  1. Choose WP Event Manager as the app.

Select WP Event Manager as the action app

  1. Select Register an attendee for an event.

Select Register an attendee for an event

Step 4: Configure the action

Field Required What it does
Event Yes Pick the event to register the person for.
Attendee name No The name to record. If empty, the name on the WordPress profile that owns the email is used, or the email itself.
Attendee email Yes Who to register. Defaults to the email of the user this automation is running for.

In Attendee name, insert the Billing first name and Billing last name tokens. In Attendee email, insert the Billing email token.

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 the event's registrations to see the new one, 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 WP Event Manager trigger. 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 an attendee for an event action, a purchase becomes a registration with no extra step for the customer. To email them as well, see sending a confirmation email when someone registers.

FAQs

Is this free in Zapify?

The A product is purchased trigger is free, but the WP Event Manager action is part of the PRO integration and needs an active Zapify PRO licence.

Does the customer need a WordPress account?

No. The registration needs a name and an email address, and the Billing tokens supply both.

What happens if the same customer buys twice?

The second run is skipped, because that email is already registered. Zapify → Logs says so.

Will WP Event Manager send its registration emails?

Yes. Zapify announces the registration the way the add-on does, so its own emails and other plugins that listen for registrations run as usual.

Do I need to write any code?

No. Everything is configured visually in the Zapify builder.

Was this page helpful?