Support

Home Forums Event Espresso Premium Unique invitation code for few hundred participants.

Unique invitation code for few hundred participants.

Posted: August 1, 2017 at 8:06 pm

Viewing 3 reply threads


ascjon

August 1, 2017 at 8:06 pm

I am trying to create a new event for hundreds of participants. Since the quota is limited we will go through a lottery process. (The lottery process can be done backend easily, which is not an issue.)

500 successful people will be able to register and pay for the event. I am look for either option below.
1. Everyone has an “unique link” to register by invitation.
2. A one time code for them to register only with the code.

I found an old post about using Groupon add-in but it seems to be only working with EE3 and I cannot find the add-in in EE4.

I am thinking of using a unique promo code for all participants and give a huge discount (e.g. $9500 off and I mark the event at a price of $10000). But i will need to go through a process of creating 500 unique promote code, which is not quite possible.

Is there any other add-in/solution for this or I should find other registration platform for this?

Thanks.
J.


Josh

  • Support Staff

August 2, 2017 at 4:03 pm

One solution would be to put a unique ticket capability requirement on a ticket, and grant the 500 users the capability, then remove the capability after they finalize their registration. This will prevent them from attempting to register twice or share the code with others.

Here’s how you set this up:
1) Use a script or the User Role Editor plugin to create a new capability and grant that capability to the 500 users. In this example the capability is has_unique_invitation_code.
2) Use the WP User Integration add-on’s feature to set the ticket requirement capability:
https://www.evernote.com/l/AASKl9-6sDZOi5akVwk6dGnUcpbouU1c3Dw
3) Add this code to automatically remove that capability after they register for the event:
https://gist.github.com/joshfeck/51c2ef122616b48cc4846b1f44384859
You can add the above to a functions plugin.


ascjon

August 2, 2017 at 10:00 pm

Thank you! This looks much easier than I thought.
Any tips on granting the capability to 500 selected users (maybe out of few thousands registered users) if not doing manually? Say I have a list of their registered email/user name.

Thanks.
J.


Josh

  • Support Staff

August 3, 2017 at 10:30 am

I updated the gist to include a separate plugin that can be used to add the capability to accounts from a list of email addresses.

https://gist.github.com/joshfeck/51c2ef122616b48cc4846b1f44384859#file-wp_add_user_caps_on_activate-php

Viewing 3 reply threads

The support post ‘Unique invitation code for few hundred participants.’ 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.

Event Espresso