Posted: 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 function espresso_infusionsoft_save_date_field($attendee_data) { $clean_attendee_data = array( ‘_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 |
Hi Dave, May I ask does the contact get added to Infusionsoft when you register for an event? |
|
|
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. |
|
“when they fill out the registration form” I have fat fingers. :/ |
When you had the code in the site specific plugin, did you activate the plugin from the WordPress plugins page? |
|
|
Yes. I did activate the plugin from the WordPress plugins page. |
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? |
|
|
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… |
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). |
|
|
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. |
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? |
|
|
Nope. |
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. |
|
|
Thanks Josh. I will try to figure this out and get back to you. |
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.