Hi I have 8 event categories on my site. What i want is for when a customer receives their payment confirmation email I need it to add a link to a page on the site, depending on what category the course they have purchased is.
So basically i need there to be a link in the email template which checks what category the purchase is for and then dynamically build the link.
Is there anyone who can help/point me in the right direction that would be amazing.
Thanks
It can be done by editing the /wp-content/plugins/event-espresso/includes/functions/email.php file.
Unfortunately there are no action hooks to separate off a function so you would need to edit the core file (meaning plugin updates will over write your changes).
I would probably do it so the replace_shortcodes function is edited with a new tag that calls a new function, so you can add an email tag to the email to get the positioning right.
You will need to do an SQL search within the new function for the event category based on the event ID as the category is not available in the $data object.
Viewing 1 reply thread
The support post ‘Editing Payment confirmation email – Adding dynamic link’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.