Support

Home Forums Event Espresso Premium EE4 MailChimp Pass Ticket Type

EE4 MailChimp Pass Ticket Type

Posted: February 28, 2019 at 10:13 am


Optimal State

February 28, 2019 at 10:13 am

Hi,

We need to send specific emails to specific type type holders. We would like to do this using the MailChimp plugin (unless there is an easier way we are missing?).

Here is a screenshot of our set up:
https://nimb.ws/z8AElM

There are multiple tickets per ticket type. We don’t need the specific tickets purchased, but just the main type that it belongs to. Which is what I’ve highlighted in the screenshot.

I stumble upon this here, but is not exactly what we need. Is it possible to send the ticket type instead of the event name?
https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-mailchimp/tw_eea_mailchimp_event_name.php

Thnaks!


Tony

  • Support Staff

February 28, 2019 at 10:52 am

Hi there,

There are multiple tickets per ticket type. We don’t need the specific tickets purchased, but just the main type that it belongs to. Which is what I’ve highlighted in the screenshot.

Unless I’m missing something, there isn’t anything highlighted in the screenshot?

Do you mean the datetimes?

So you want to pass the datetime name to MailChimp?

So assuming the ‘Jan 5, 2019: Alzheimer’s/Dementia Half Day 8am-1pm’ ticket was registered on, you want ‘Alzheimer’s-Dementia/Building Business’ to be passed to MailChimp?

Is each ticket only assigned to its relevant type (datetime)?


Optimal State

February 28, 2019 at 5:06 pm

Tony,

Sorry, yes, you understand correctly. I should have added a highlight to that area.
Yes, each ticket type is only assigned to it’s relevant date time.

Thanks!


Tony

  • Support Staff

February 28, 2019 at 5:19 pm

This is about the closest to what you need that we have currently:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-mailchimp/tw_eea_mailchimp_start_date.php

At THIS POINT you have a datetime object and can pull any of the details from that you need, for example for the datetime name, instead of this:

//Add the 'EVENTDATE' merge var and use the datetimes start_date for the value.
$merge_vars['EVENTDATE'] = $datetime->start_date( 'Y-m-d' );

You could use:

$merge_vars['TICKETTYPE'] = $datetime->name();

Which sets a merge var call TICKETTYPE to the datetime name.

However, just to clarify, with the above you don’t actually have different ‘ticket types’ you have tickets assigned to datetimes (which you are using as a ticket type/group) so what you are actually sending over is just the datetime name.

Is that what you are looking for?


Optimal State

March 1, 2019 at 8:17 am

Tony,

Your are a god among men. We actually don’t need the ticket type, rather just the datetime name to be sent. This is perfect. I’ll test it out now and let you know if it works 🙂

Thanks!


Tony

  • Support Staff

March 4, 2019 at 7:34 am

You’re most welcome 🙂

The support post ‘EE4 MailChimp Pass Ticket Type’ 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