Support

Home Forums Event Espresso Premium Sending Event Start Date to Infusionsoft

Sending Event Start Date to Infusionsoft

Posted: February 18, 2016 at 10:47 am


David Grandmaison

February 18, 2016 at 10:47 am

Good Day!

I am looking at sending event start date from EE (using EE3) to a contact record in Infusionsoft. I have read the following post entitled “Sending Course Dates to Custom Field in Infusionsoft” and I’m basically trying the replicate that function.

I created a custom field (text format) in Infusionsoft called “TMP Next Tour Date”.

I then created a site-specific plugin following the guidance in this post.

Here is the code I put in the plugin:

<?php
/*
Plugin Name: Site Plugin for theduluthexperience.com
Description: Site specific code changes for theduluthexperience.com
*/

function espresso_infusionsoft_save_date_field($attendee_data) {

$clean_attendee_data = array(
//Example of a custom contact data field
//NOTE: You must prepend custom field database names with an underscore when accessing them through the API

‘_TMPNextTourDate’ => $attendee_data[‘start_date’],

);

return array_merge($attendee_data, $clean_attendee_data);

}

add_filter( ‘filter_hook_espresso_infusionsoft_extra_attendee_data’, ‘espresso_infusionsoft_save_date_field’, 10, 1 );

After failed testing of this approach, downloaded the Custom Files Add-on and followed the guidance provided in this post. I then modified the custom_functions.php with the code above.

This also failed to pass the “TMP Next Tour Date” info to Infusionsoft.

Can anyone see errors in the code above that might be causing the failure? Maybe I’m missing a step??

Thanks in advance for any assistance you can provide!

Dave


Josh

  • Support Staff

February 18, 2016 at 1:26 pm

Hi Dave,

May I ask does the contact get added to Infusionsoft when you register for an event?


David Grandmaison

February 18, 2016 at 1:51 pm

Hi Josh! The answer is yes. Each guest has their basic information transferred to Infusionsoft when then fill out the registration form.

I also have each quest tagged with an event type but we have so many events (within each event type) that it wouldn’t be practical to give each event its own tag. Instead, I’d like to get that “Start Date” transferred over.


David Grandmaison

February 18, 2016 at 1:52 pm

“when they fill out the registration form”
“I also have each guest…”

I have fat fingers. :/


Josh

  • Support Staff

February 18, 2016 at 3:37 pm

When you had the code in the site specific plugin, did you activate the plugin from the WordPress plugins page?


David Grandmaison

February 18, 2016 at 4:26 pm

Yes. I did activate the plugin from the WordPress plugins page.


Josh

  • Support Staff

February 18, 2016 at 5:19 pm

It’s possible that it’s a load order issue where your custom code didn’t load at the right time. The way the hooks work in the WordPress plugin API is if it’s too early or too late the code will not execute.

But it’s also a possibility that the Infusionsoft tag doesn’t match the tag in the function. From what I remember they strip the spaces from the tag name, so what you have looks correct. I wonder though, if the tag name was one word, would that make a difference?


David Grandmaison

February 19, 2016 at 8:29 am

I tried it with a one-word tag name and that didn’t do it either.

Do you think it could have something to do with the fact that my events were built using the recurring events option? Just brainstorming here…


Josh

  • Support Staff

February 23, 2016 at 1:25 pm

No I think it’s more likely that your code isn’t loading. One thing you can try is renaming the plugin folder to something like an-infusionsoft-ee-plugin, then activate (Please be sure to remove the code from the custom_functions.php first).


David Grandmaison

February 25, 2016 at 7:43 am

Hi Josh. I got around to testing the folder re-naming hypothesis… unfortunately, it hasn’t solved the problem. I’ve got to believe that there is somebody out there that has run into this and figured it out. I hope we can too! Thanks for working with me on this.


Josh

  • Support Staff

February 25, 2016 at 10:38 am

I’m afraid I’ve not seen it where this has happened before. Is there something that you’ve seen elsewhere that leads you to believe that someone has run into this before?


David Grandmaison

February 25, 2016 at 10:42 am

Nope.


Josh

  • Support Staff

February 29, 2016 at 10:06 am

Hi David,

The next steps to troubleshoot this are 1) Find out if the code is actually being executed and 2) If the code is being executed, is it throwing errors. You may be able to do steps 1 and 2 by enabling WP_DEBUG logging, then check the debug.log file for errors after running a registration. If there are errors being thrown from your custom code, then we know the code is executing, and we’ll have a better idea on what to do next.


David Grandmaison

March 10, 2016 at 9:38 am

Thanks Josh. I will try to figure this out and get back to you.


Josh

  • Support Staff

March 10, 2016 at 4:30 pm

You’re welcome.

The support post ‘Sending Event Start Date to Infusionsoft’ 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