Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active March 3, 2016 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzocaum/4d71dfab05941f7e3082 to your computer and use it in GitHub Desktop.
Save lorenzocaum/4d71dfab05941f7e3082 to your computer and use it in GitHub Desktop.
How to setup early-bird pricing in Event Espresso 4

Event Espresso 4 uses a ticket editor which lets you create multiple ticket options and schedule when those tickets (pricing options) should be available for sale. This means that you can create a ticket with reduced pricing and then create a regular priced ticket option.

If you are using the Promotions add-on, then you can create a codeless promotion (e.g. specify no discount code and set a date range) and assign it to a specific event. Note this this will apply to all available ticket options for the event and this tutorial offers a more flexible option.

Create your ticket options

Login to your WP-admin (WP dashboard) and then go to Event Espresso --> Events. Click on Add New to create a new event or click on the title of an existing event to make changes to an existing event.

You'll now be viewing the event editor. If this is a new event, then go ahead and add basic event information like a title and description. Then scroll to the ticket editor.

Create the first ticket option and set the date range for when the ticket option should be available for sale. Then click on the duplicate icon to create a copy of this ticket option. Adjust the pricing for the new ticket option and then set it to be available right after the discount early-bird ticket option is available by adjusting the start and end dates. Then save changes to your event.

If you go to the single event page, then you'll see two ticket options. The early-bird (discounted) ticket option will open for sale for the date range that you set and so will the regular ticket.

Hide upcoming ticket options (Optional)

Generally, the early-bird ticket option will be available for immediate registration (or in the near future) and the regular priced ticket will be unavailable. You may want to hide the regular priced ticket since it is "upcoming" and not currently available.

You can use a line of CSS to hide the regular priced ticket.

/* Hide ticket options with a status of upcoming */
.espresso_events .ticket-pending { display:none; }

Once the early-bird ticket expires, then the regular pricing ticket will become "active" and it will be available for registration. If you would like to hide expired tickets, then use this line of CSS:

/* Hide ticket options with a status of expired */
.espresso_events .ticket-sales-expired {display:none;}

The examples above can be added to your child theme's stylesheet or through a plugin like Reaktiv CSS Builder or Simple Custom CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment