Support

Home Forums Event Espresso Premium Event Espresso 4 (3)

Event Espresso 4 (3)

Posted: May 7, 2014 at 12:33 am

Viewing 3 reply threads


buooy

May 7, 2014 at 12:33 am

We are using Event Espresso 4 and we are trying to show different payment gateways for different events. I’m quite sure there isn’t an in-built way to do this.

I’m an experienced WordPress developer so I have no problems using the action hooks but would love some guidance as to how to achieve this.

In specific, we have three activated options: bank draft, cheque and paypal.

We would like to hide paypal for one event, bank draft and cheque for the other.


buooy

May 7, 2014 at 9:21 am

Sorry, are there any updates?


Brent Christensen

  • Support Staff

May 7, 2014 at 11:19 am

Hi there,

Here’s one possible way you could achieve this:

You could set a meta option on the event for the gateway you want to use, make sure it’s value matches the slug we use for the gateway (check source code on the reg form), you could do this manually (easy but easy to make a mistake), or hook into the admin and create your own metabox and display a dropdown with all of the values already set in it (best option but most complicated).

Then during registration, use JavaScript to remove ALL of the other payment options that don’t match the event’s meta value that was set. If no value is set for that event, then the defaults get used (all gateways).

Make sure that ALL gateways you **potentially** want to use for events are active.

Hope that helps.


Brent Christensen

  • Support Staff

May 7, 2014 at 12:06 pm

PS: an easy way to add a metabox is to use the free Advanced Custom Fields plugin: http://www.advancedcustomfields.com/? which works great with EE4

Viewing 3 reply threads

The support post ‘Event Espresso 4 (3)’ 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