Support

Home Forums Event Espresso Premium E-Mail Tags – Custom text & links only

E-Mail Tags – Custom text & links only

Posted: August 30, 2013 at 1:13 am

Viewing 5 reply threads


Klaus M

August 30, 2013 at 1:13 am

hi. About the EMAIL TAGS: i’d like to insert a <aA href=”TICKETLINK”>CUSTOMIZED TEXT TO THAT LEADS TO TICKET SRC</aA>. Using the [ticket_link] does not show the text we’d like to have. Using POedit to change the translation is not quite a solution, because we need the <aA href=”TICKETLINK”>WITH DIFFERENT TEXT IN DIFFERENT PARAGRAPHS</aA>.

So is there a way to receive the plain link to the ticket?

thanks for helping me out!

  • This topic was modified 11 years, 3 months ago by Klaus M.


Dean

August 30, 2013 at 3:40 am

Hi,

The only way I can think of doing this involves modifying the function behind the email tag or perhaps to generate a new email shortcode. Either way you will need to modify code, probably core code which we dont really recommend.

Sorry about that.


Klaus M

August 30, 2013 at 3:42 am

ok, i run my backups very frequently, so i’d give it a try. what are the files the shortcodes can be edited or created? thanks!


Dean

August 30, 2013 at 3:52 am

event-espresso/includes/functions/main.php

The function is called espresso_ticket_links

I havent tested it but it *might* be possible to convert that into a custom shortcode, though you will probably still have to edit core files.


Tony

  • Support Staff

August 30, 2013 at 3:59 am

Here’s a method if only being used within the Emails.

Go to event-espresso/includes/functions/email.php

At line 32 you’ll see

"[ticket_link]",

Add

"[ticket_url]",

on the next line.

Then go to line 85 you’ll see

$data->ticket_link,

under that add

espresso_ticket_url($data->attendee->id, $data->attendee->registration_id, '&pdf=true'),

remove & ‘&pdf=true’ if you want it to just be html based.

That’ll add a new shortcode to the emails [ticket_url]

Use that to get just the URL for the ticket.


Klaus M

August 30, 2013 at 4:21 am

Woooohoooo! Jackpot!

Exactly what i was looking for! Awesome! Thanks Tony!

Viewing 5 reply threads

The support post ‘E-Mail Tags – Custom text & links only’ 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