Support

Home Forums Event Espresso Premium Handling Annual Membership and Membership Pricing

Handling Annual Membership and Membership Pricing

Posted: March 8, 2018 at 9:05 am


info@bhaa.ie

March 8, 2018 at 9:05 am

Hi,

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?

update_user_meta( $user_id, "bhaa_runner_status", "M");

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?

Regards,
Paul


Josh

  • Support Staff

March 9, 2018 at 8:01 am

Hi Paul,

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.

More info here:
https://eventespresso.com/wiki/wp-user-integration/

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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 6 months, 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!