Support

Home Forums Event Espresso Premium EE4 – Allowing a registrant to register to event B only if he paid event A ?

EE4 – Allowing a registrant to register to event B only if he paid event A ?

Posted: June 22, 2017 at 11:30 am

Viewing 3 reply threads


JacquesMivi

June 22, 2017 at 11:30 am

Hello,

We have a particular case study: We want that a registrant can’t register to event B if he didn’t successfully paid event A.

We thought about using WP roles to do such a restriction but here we have a problem: how to set up automatically a new role to every registrant that successfully paid event A? Can we trigger this information somewhere in EE4?

For your information:
– We use EE4
– We use EE4 Stripe gateaway plugin

Do you have an idea of how we could do to achieve this result please? It’s a tricky one but it would be nice if we found a solution, even if not perfect one.

Thanks very much


Josh

  • Support Staff

June 22, 2017 at 12:19 pm

Hi JacquesMivi,

You could use a custom capability and grant that capability to the user account when their registration is approved. This would be much simpler than requiring a role (and the WP User integration add-on has the built in feature to require a custom capability). WordPress has a function that handles the adding capability end:

https://codex.wordpress.org/Function_Reference/add_cap


JacquesMivi

June 22, 2017 at 12:39 pm

Hi Josh,

This is very interesting and probably the right solution. How could I set up that this new capability give the right to the registrant to register to event B? I know how to restrict an event registration to specific roles, there is a dedicated field in the event back-end detail, but how could I do the same only with capability?

Thanks a lot


Josh

  • Support Staff

June 22, 2017 at 12:49 pm

You set the custom capability in the Ticket Capability Requirement field, pictured in the documentation:

https://eventespresso.com/wiki/wp-user-integration/#ee4usage

Viewing 3 reply threads

The support post ‘EE4 – Allowing a registrant to register to event B only if he paid event A ?’ 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