Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active February 16, 2016 20:35
Show Gist options
  • Save lorenzocaum/3d5cd71f2272d5473172 to your computer and use it in GitHub Desktop.
Save lorenzocaum/3d5cd71f2272d5473172 to your computer and use it in GitHub Desktop.
How to use a different PayPal.com account for each event in Event Espresso 4

Add the sample code in the link below to your child theme's functions.php file or in a site specific plugin.

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/jf_ee_paypal_account_meta_key_override.php

Now login to your WP dashboard (WP-admin) and go to Event Espresso --> Events and click on an event. You'll now be viewing the event editor which will have information about the event that you clicked on. Scroll down and look for the custom fields area.

Click on Enter New. Then in the Name field enter "paypal_id" and in the Value field enter the email address that should receive payments for this event. Then click on the Add Custom Field button and save changes to the event through the event editor.

Here is a quick walkthrough of how to create the custom field with the correct information: http://cl.ly/image/2Z161y3A2L26

With additional events, the paypal_id option will be available in the dropdown. Select it, then enter an email address in the Value field and then click on Add Custom Field and then save changes to the event.

Here is an example: http://cl.ly/image/0k3z0Q2q3G3G

Limitations

This is not compatible with the Multiple Event Registration add-on. If you are using this option, then a registrant/attendee will only be able to register for a single event at a time.