Support

Home Forums Event Espresso Premium Creating an annual event subscription (Buddypress + Event Espresso)

Creating an annual event subscription (Buddypress + Event Espresso)

Posted: August 3, 2019 at 7:40 pm


a608237

August 3, 2019 at 7:40 pm

Hello team,

Event Espresso to the best of my knowledge, works on an event by event basis. There is no consideration for any particular special membership statuses or anything like that.

I am seeking to develop on my own, an annual event subscription plan, and I would like some feedback regarding my general plan/thinking to implement it (below). I have buddypress and Event Espresso 4 + user integration:

1) create custom user meta field ‘annual_subscription’, set default to NULL
2) registered user buys event espresso ‘annual subscription’ ticket
3) on payment, set user’s annual_subscription meta field to current date
4) for the user’s future event registrations, check user’s ‘annual_subscription’ field
– if the EE event start date is within the user’s annual_subscription meta field date + 365 days, then set ticket prices to FREE, else show normal prices (not sure how to do this yet)
5)for user’s with NON NULL annual_subscriptions, check meta field date: for dates older than 365 days from today -> set ‘annual_subscription’ to NULL (not sure how to do this yet)

This is logic possible with Buddypress + EE4? Is this logic a reasonable way of implementing a subscription based ticketing system?

Thanks!


Tony

  • Support Staff

August 5, 2019 at 4:34 am

Hi there,

Event Espresso to the best of my knowledge, works on an event by event basis. There is no consideration for any particular special membership statuses or anything like that.

This is mostly correct but needs a little clarification.

Event Espresso is an event management system, it is not a membership management system. So yes, we work on events and managing registrations for the events etc and we do not create ‘special membership statuses’ to use on those events, but…

The WP User integration add-on has an option to set a capability on the ticket that EE will check for to allow users to register onto that ticket. So if you used an actual membership plugin to handle memberships of the users above, as long as that membership plugin uses capabilities (most do, but check as not all) you could basically just use that feature on the free tickets meaning ‘members’ can then register.

This separates out the tasks of each of those plugins, Event Espresso handles registrations allowing ‘members’ to register onto free tickets (which have a capability set on them) and non-members to register on tickets without those capabilities set on them. The membership plugin handles all of the logic to add/remove/manage memberships on individual members.

In other words, both plugins do what they are designed to do and they do it well enough to fit most of your requirements, if not more.

As a quick example, say you used ‘S2 Member’ to create memberships and the users that you want to register onto free tickets have a level_2 membership (that is a part of S2 Member, other membership plugins call them different things but the idea is the same). Users sign up to be a level_2 member and that means that S2 adds the level_2 capability to their account. Using the WP User integration add-on I mentioned above you set the level_2 capability on the free tickets and the above user can register onto it. S2 Member manages the memberships and when the time comes it ‘demotes’ the user from its membership which essentially removes the capabilities on their account, they no longer have the capability required for free tickets so that can register onto them.

Now, you have this above:

2) registered user buys event espresso ‘annual subscription’ ticket

Meaning you’re mixing the functionality of Event management and Membership management. Is it possible, sure! But it’s not going to work like that out of the box, you’re going to need some custom development if that’s the route you choose to take (essentially hooking in and adding the membership to the user when they purchase a ticket) your going to have to work through all of the logic involved with it.

So having said all that, in response to this:

I am seeking to develop on my own, an annual event subscription plan, and I would like some feedback regarding my general plan/thinking to implement it (below). I have buddypress and Event Espresso 4 + user integration:

You’re free to develop your own solution to this, however using a membership plugin simplifies a lot of what you’re trying to do. The logic you are looking to include is already in use for memberships and you can tie that into EE using the capability checks.

So your re-inventing the wheel (which, to be clear is not going to be as simple as it sounds) for something that is actually fairly simple to set up with another plugin.


a608237

August 5, 2019 at 9:37 am

Hi Tony,

THank you for the details, I am following alot of what you are saying. I would like clarification on something.

You mentioned that users’sign up for the level_2_membership’ capability, but I would like to attach the capability when the prospective user buys the ‘level_2_membership ticket’. Is this capability available out of the box in S2 + EE? If not, can you point me to the action / filter hook(s) that you would use to grant level 2 membership after specific ticket purchase and not on sign up?

Thanks!


Tony

  • Support Staff

August 5, 2019 at 12:46 pm

You mentioned that users’sign up for the level_2_membership’ capability, but I would like to attach the capability when the prospective user buys the ‘level_2_membership ticket’. Is this capability available out of the box in S2 + EE?

No, purchasing a ticket will not assign a membership to the user with any membership plugin as far as I am aware.

If not, can you point me to the action / filter hook(s) that you would use to grant level 2 membership after specific ticket purchase and not on sign up?

I’d likely use AHEE__EE_Registration__set_status__to_approved, that action hook is passed the registration object and is ‘fired’ when a registration is set to ‘Approved’ so you can use the registration object to check what ticket has been registered onto and if its one of your ‘subscription’ tickets, add the membership.

If you need further help with this you’ll need to contact a developer as we don’t provide support for custom development. If you are not working with a developer already we recommend the folks at codeable.


a608237

August 5, 2019 at 2:17 pm

Last question:
does the Multiple Event Registration add-in support discounts based on the number of events selected for registration?

For instance:
1 event registration = $40
2 event registration = $40 – $10 discount = $30


Tony

  • Support Staff

August 5, 2019 at 2:22 pm

No, not currently.

We do have a ‘volume discounts’ feature on our roadmap here:

https://trello.com/c/JjTd8mbE/90-promotions-volume-discounts

But it’s not something that we have started work on at this time.

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  Tony 2 weeks, 1 day ago ago

Topic Tags

Notifications

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