Support

Home Forums Multiple Event Registration Add-on Title Above Rows in Ticket Selector

Title Above Rows in Ticket Selector

Posted: October 14, 2018 at 10:53 am


psdadmin

October 14, 2018 at 10:53 am

I’m trying to get titles/headings above certain ticket selector tickets to section off the different days.

I found this snippet in one of Josh’s github.

I set into my functions.php, changed m titles, but need to assign the event and change the id.

How is this id determined?
$(“.ee-ticket-additional-welcome-event-ticket-earlybird”)

This is what I have at this point.

add_action( ‘wp_enqueue_scripts’, ‘my_ee_add_ticket_row_headings’, 11 );
function my_ee_add_ticket_row_headings() {
wp_add_inline_script(
‘ticket_selector’,
‘jQuery( document ).ready(function($) {
$(“.ee-ticket-additional-welcome-event-ticket-earlybird”)
.before( “<tr><td colspan=\’3\’><h3>2019 Workshop Registration</h3></td></tr>” );
$(“.ee-ticket-additional-welcome-event-ticket-earlybird”)
.before( “<tr><td colspan=\’3\’><h3>Monday – March 11, 2019</h3></td></tr>” );
$(“.ee-ticket-additional-welcome-event-ticket-earlybird”)
.before( “<tr><td colspan=\’3\’><h3>Tuesday – March 12, 2019</h3></td></tr>” );
$(“301 – RT 1a Round Table Discussion Office of the State Fire Marshal”)
.before( “<tr><td colspan=\’3\’><h3>Wednesday – March 13, 2019</h3></td></tr>” );
$(“.ee-ticket-additional-welcome-event-ticket-earlybird”)
.before( “<tr><td colspan=\’3\’><h3>Thursday – March 14, 2019</h3></td></tr>” );
$(“.ee-ticket-additional-welcome-event-ticket-earlybird”)
.before( “<tr><td colspan=\’3\’><h3>Fri – March 15, 2019</h3></td></tr>” );

} );’
);
}

Any hints or tips would be great. TIA!


Tony

  • Support Staff

October 15, 2018 at 3:38 am

Hi there,

How is this id determined?
$(“.ee-ticket-additional-welcome-event-ticket-earlybird”)

Thats a class added to the table row of the ticket selector and it uses the format:

.ee-ticket-{ticket-name}

Note that any special characters will be removed and spaces converted to dashes -.

I set into my functions.php, changed m titles, but need to assign the event and change the id.

I’m nor sure what you mean here, can you provide more details?

Assign to the event? The classes target specific tickets.

Change which ID?

Can you link us to the event so we can take a look?

The support post ‘Title Above Rows in Ticket Selector’ 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.

Status: closed

Updated by  Tony 10 months, 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!