We are migrating our booking system from eventmanager to event espresso, and i’m looking for advise on how we should model our event setup to best match the event expresso framework.
We normally create one event which we call ‘Annual Membership 2018’ and it’s open for booking for the whole year. It has a single fixed cost of 15e per year. When a person books a ticket under this event, we also set a wordpress user metadata field with ‘bhaa_runner_status’=> ‘M’ to include their membership. Is there a hook point for user booking where we can apply this custom logic?
The second aspect is we have monthly events, where members can register for a ticket price of 10e and non-members need to pay 15e. We use the same ‘bhaa_runner_status’ metadata field to control the price. How can i achieve the same with this API?
Instead of using a metadata field, it will be much cleaner and easier to assign a custom capability to the user account. This way, you can use the WP User Integration to set up the discount ticket price with no code modifications necessary.
So all you’ll need to do when you set up the Annual Membership event is set the option “Auto Create users with registrations” to Yes, and set the Default Role for auto-created users to your membership role. Then add a custom cap like member_2018 to the membership user role (use a plugin like Members by Justin Tadlock).
Then, when you set up your event tickets, you’ll set the Member Price ticket’s Ticket Capability Requirement field to be member_2018.
The support post ‘Handling Annual Membership and Membership Pricing’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.