Support

Home Forums Event Espresso Premium Integration

Integration

Posted: December 11, 2019 at 2:57 am


Calypsobob

December 11, 2019 at 2:57 am

Is it possible to setup the following fields in Infusionsoft via the Event Espresso – Infusionsoft Integration.
1. Course Name
2. Course Date
3. Venue Name
4. Venue Address


Tony

  • Support Staff

December 13, 2019 at 3:14 am

Hi there,

Can you provide more details on what you are trying to do, please?

I’m guessing you want these details attached to the IS order?

We have hooks through EE and the IS add-on that will likely allow you to do what you need, but which hook to use depends on the specifics of what you are trying to achieve.


Calypsobob

December 18, 2019 at 5:47 am

Hi Tony,

Actually what we would like to do is get these into custom fields on the contact record at the point of purchase, not on a order, would that be doable?


Tony

  • Support Staff

December 18, 2019 at 5:53 am

Doable, yes, but do your registrants only register onto a single event, ever?

No return users?

May I ask why you would assign the above values to the contact?


Calypsobob

December 18, 2019 at 7:11 am

What we want to do is have a number of contact fields:
Course Name
Course Venue
Course Address
Course Date

That we can populate from EE when they book, so we can then send out bespoke follow-ups for that course, using merges, rather than needing a campaign for each one. When they book a new course, these can then be overwritten.


Tony

  • Support Staff

December 19, 2019 at 6:55 am

Ok, so there is a filter in the Infusionsoft add-on that allows you to set additional fields on the contact data synced with Infusionsoft:

FHEE__EED_Infusionsoft__save_infusionsoft_attendee__extra_attendee_data

Josh has previously created an example that will Event Name and Date here:

https://gist.github.com/joshfeck/3fb137494e100abc925c

When you say course address where are you setting that? I’m assuming the venue?


Calypsobob

December 19, 2019 at 7:50 am

Yes the venue is the course address. Anything more i need for the venue field?


Josh

  • Support Staff

December 19, 2019 at 4:05 pm

Hi,

If you start with the code that Tony shared with you, you can add more to it so it also sends the venue name and address. Immediately after the
if ( $event instanceof EE_Event ) {
you could add this:

$venue = $event->get_first_related( 'Venue' );
if ( $venue instanceof EE_Venue ) {
  $venue_name = !empty( $venue ) ? $venue->name() : '';
  $venue_address = !empty( $venue ) ? $venue->address() : '';
  $is_contact_data[ '_yourISfieldforvenuename' ] = $venue_name;
  $is_contact_data[ '_yourISfieldforvenueaddress' ] = $venue_address;
}


Calypsobob

December 20, 2019 at 12:45 am

Hi Tony, That’s great. Thank you for such a detailed and positive response.


Calypsobob

January 2, 2020 at 2:04 am

Hi Tony, I ope you had a great Christmas and may i wish you a Happy New Year. Can you tell me where i put the code? I am not sure about the date of an event. Can you clarify if it is possible to get the date of an event from EE to Infusionsoft?


Josh

  • Support Staff

January 2, 2020 at 8:50 am

Hi,

We recommend putting the code into its own little plugin. You can follow this guide that shows how to make a little plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

It was mentioned previously in this topic that this snippet:

https://gist.github.com/joshfeck/3fb137494e100abc925c

also passes the event name to IS.

The support post ‘Integration’ 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