Home › Forums › Ticket Products › Event Tickets Plus › Show Ticket Description in tickets email
- This topic has 8 replies, 2 voices, and was last updated 8 years, 2 months ago by
Marc.
-
AuthorPosts
-
December 18, 2017 at 4:30 pm #1408331
Marc
ParticipantHi, I’m trying to show the description in the tickets email. I’ve got the template in my child theme. (under Tickets > Advanced > Description)
Can you provide the code to pull the description?
December 19, 2017 at 5:58 pm #1409319Geoff B.
MemberGood evening Marc and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.I believe this is exactly what you are looking for: https://gist.github.com/jesseeproductions/f97b79abe0458fc07a18
Let me know how that goes.
Best regards,
Geoff B.December 20, 2017 at 1:17 pm #1410262Marc
ParticipantThanks for finding this. Yes, this looks exactly like what I’m looking for. Sadly, its not working for me. I’ve tested by trying to echo out the variables. There is nothing there to echo, for even the initial $ticket_product_id.
$ticket_product_id = get_post_meta( $ticket[‘ticket_id’], ‘_tribe_wooticket_product’, true );
$ticket_product = get_post( $ticket_product_id );
$ticket_description = $ticket_product->post_excerpt;Can you confirm that this is requesting the correct fields? I believe I’m looking for ‘ticket_description’ instead of “post_excerpt”. I did put an excerpt into the post just to check, but that didn’t work. I also switched that to ticket_description which also failed.
And is it formatted correctly?Thanks in advance.
Marc Simpson
December 20, 2017 at 2:29 pm #1410352Marc
ParticipantThanks for finding this. Yes, this looks exactly like what I’m looking for. Sadly, its not working for me. I’ve tested by trying to echo out the variables. There is nothing there to echo, for even the initial $ticket_product_id.
$ticket_product_id = get_post_meta( $ticket[‘ticket_id’], ‘_tribe_wooticket_product’, true );
$ticket_product = get_post( $ticket_product_id );
$ticket_description = $ticket_product->post_excerpt;Can you confirm that this is requesting the correct fields? I believe I’m looking for ‘ticket_description’ instead of “post_excerpt”. I did put an excerpt into the post just to check, but that didn’t work. I also switched that to ticket_description which also failed.
And is it formatted correctly?Thanks in advance.
Marc Simpson
December 21, 2017 at 11:40 pm #1411438Geoff B.
MemberGood evening Marc,
Thank you for taking the time to write back.
I just double-checked and you might be on to something, the snippet is about a year old and we recently re-engineered our Tickets module.
Most likely that makes the ticket deprecated.
I will reach out to our coding ninjas to see if they can update it for you.With that in mind, due to holiday outages, that might take slightly longer than usual.
We apologize for the inconvenience this might be creating.Hang tight as I follow-up on this for you.
Geoff B.
January 8, 2018 at 9:58 am #1420549Marc
ParticipantHi Geoff,
Thanks for digging into this. Any news yet?
January 8, 2018 at 2:34 pm #1420865Geoff B.
MemberGood evening Marc,
Impeccable timing.
Full disclosure, getting my hands on a coding Ninja proved to be more difficult than expected because of the holidays.But I believe the following should work: https://gist.github.com/vicskf/766700809bc3eb452977784d379bb2b4
Let me know how that goes.
Best regards,
Geoff B.January 30, 2018 at 8:36 am #1439799Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Show Ticket Description in tickets email’ is closed to new replies.
