Posted: February 5, 2015 at 4:19 pm
|
Hi there, I am trying to have the [seating_tag] info show on the ticket page (the ticket page that is linked from the confirmation email the registrant receives). I was able to get it working on the email itself, but when i view the ticket, it just says [seating_tag] without pulling the data. see http://events6.creativesls.com/?ticket_launch=true&id=13&r_id=54d3f567a44420.57030799&html=true Thanks |
|
Hi Dovid, |
|
see deans response in this article. I made those edits and when i use the [seating_tag] in the email confirmation it shows me the info but on the ticket it doesn’t seem to work. |
|
ahh, I think I found the disconnect. There is a seating_tag as an email shortcode, not as a shortcode you can use on a page or post. |
|
hat code would i use to pull the section and custom tag from the seating chart in the ticket on the page? |
|
no, that shortcode only works in emails. The shortcode system that we implemented for emails in EE3 is completely different from the WP shortcode system that works for posts and pages. An EE3 email shortcode will not work in a WP post or page. |
|
so what code would i put in the ticket template php file? espresso-ticketing\templates\deluxe.php. There’s got to be a script that would pull the info. Please advise. |
|
Hi, All the available shortcode tags for ticket templates are found here: https://eventespresso.com/wiki/ticketing-add-on-template-tags/ The one I think you are after is [seatingchart_tag] Please note that these must go in the template file itself, not in the ticket description. |
|
which file would i edit to show the section using [seatingchart_tag] Thanks |
Hi, we don’t recommend editing the core plugin but that tag exists in the same file: event-espresso/includes/functions/email.php if (defined("ESPRESSO_SEATING_CHART")) { if (class_exists("seating_chart")) { if ( seating_chart::check_event_has_seating_chart($data->event->id)) { $rs = $wpdb->get_row("select scs.* from ".EVENTS_SEATING_CHART_EVENT_SEAT_TABLE." sces inner join ".EVENTS_SEATING_CHART_SEAT_TABLE." scs on sces.seat_id = scs.id where sces.attendee_id = ".$attendee_id); if ( $rs !== NULL ) { $data->seatingchart_tag = $rs->custom_tag." ".$rs->seat." ".$rs->row; } } } } — |
|
The support post ‘[seating_tag] on ticket page’ 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.