Support

Home Forums Ticketing Add-on [seating_tag] on ticket page

[seating_tag] on ticket page

Posted: February 5, 2015 at 4:19 pm

Viewing 9 reply threads


Dovid Altein

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


Sidney Harrell

February 5, 2015 at 9:01 pm

Hi Dovid,
I’m not sure that we have a shortcode “seating_tag”. Did you find that in any of our documentation?


Dovid Altein

February 5, 2015 at 9:08 pm

see deans response in this article.
https://eventespresso.com/topic/email-tag-for-sections/

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.


Sidney Harrell

February 5, 2015 at 9:37 pm

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.


Dovid Altein

February 5, 2015 at 10:05 pm

hat code would i use to pull the section and custom tag from the seating chart in the ticket on the page?


Sidney Harrell

February 5, 2015 at 10:09 pm

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.


Dovid Altein

February 5, 2015 at 10:12 pm

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.


Dean

February 6, 2015 at 2:14 am

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.


Dovid Altein

February 8, 2015 at 12:37 pm

which file would i edit to show the section using [seatingchart_tag]
similar to what i did for the confirmation email. see https://eventespresso.com/topic/email-tag-for-sections/

Thanks


Lorenzo Orlando Caum

  • Support Staff

February 9, 2015 at 9:57 am

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;
                }
            }
        }
    }


Lorenzo

Viewing 9 reply threads

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.

Event Espresso