Support

Home Forums Event Espresso Premium Eventslist per ticket type

Eventslist per ticket type

Posted: November 5, 2024 at 7:45 am

Viewing 5 reply threads


SCIP

November 5, 2024 at 7:45 am

Hello

I have a list of upcoming events on https://bht-training.org.uk/courses/. Each event has several types of tickets including a staff ticket.

Is it possible to show on the events listing page if there are still staff tickets available. Alternatively can I set up a seperate page for events with staff tickets.

The issue is that staff members need a quick way to find available tickets. Perhaps you have another suggestion.

Many thanks

Mark


Tony

  • Support Staff

November 5, 2024 at 8:05 am

Hi Mark,

Starting with the most basic, would it work to just include the ticket selector on the event?

Event Espresso -> Events -> Templates -> Event List Pages -> Display Ticket Selector


SCIP

November 5, 2024 at 8:56 am

Thanks, I’ve thought of this. I can ask the client.

Mark


SCIP

November 11, 2024 at 3:22 am

Adding the ticket selector to the events page is fine. However, we only use the except for the event information so I need to add button to the single events so that people can read all the details.

The function my_custom_ee_excerpt_length_and_text does not seem to work.

Here is an example of the events list with the ticket selector https://staging.bht-training.org.uk/courses/ and here is the old layout https://bht-training.org.uk/courses/.

Do you know how I can get the view details button to appear somewhere above the ticket selector.

Many thanks

Mark


Tony

  • Support Staff

November 11, 2024 at 2:57 pm

Hmm, one option is to use a snippet like this:

add_action('AHEE__ticket_selector_chart__template__after_ticket_selector', 'tw_ee_add_view_details_button', 10, 2);
function tw_ee_add_view_details_button( $EVT_ID, $event ){
    if( is_archive() ) {
        espresso_event_reg_button();
    }
}

Which adds an additional reg button after the ticket selector table but only on archive views. You’ll need to style the button to suit but should give you a base to work from.

Does that help?


SCIP

November 12, 2024 at 4:49 am

Thank you Tony. This has enabled me to do what I was trying to achieve.

Viewing 5 reply threads

The support post ‘Eventslist per ticket type’ 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