Support

Home Forums Event Espresso Premium How best to display multiple sessions for one event for easy viewing?

How best to display multiple sessions for one event for easy viewing?

Posted: August 12, 2013 at 9:12 am


Chris

August 12, 2013 at 9:12 am

I have 25 x 2 hour sessions in 1 50 hour event.
Registrants can choose which sessions they want to attend.

What would be the best way to display this?

I have MER. Currently the individual sessions are displaying in full one after another and it looks messy.

I just need a pointer to help me figure this out.

Thanks in advance!


Dean

August 12, 2013 at 2:11 pm

Hi,

I would suggest using the [ESPRESSO_TABLE] shortcode from the Custom Files add on to list them in a table format.

It would need some template tweaking so PHP knowledge is a must, but it would make it easy for users to scroll through and add the right events to cart.


Chris

August 12, 2013 at 3:59 pm

Thanks Dean. I’ll have a look at that, and see if I can figure it out.

I have to say, I don’t find the shortcode documentation very clear. There’s not much instruction other than “here’s the options for the parameters”. Hopefully this one sill be easier. πŸ™‚


Chris

August 12, 2013 at 5:40 pm

Hmmm, getting closer! I have now got the table on the page, deleted headers I didn’t need (still need to find code to delete those columns), but main thing I need to figure out is changing “register” to be the “add to cart” code and make it MER friendly.

Any help on that issue would be great. πŸ™‚


Dean

August 13, 2013 at 1:07 am

Hi,

Sorry about the documentation, I tried to keep it as to the point as possible, but I will certainly take on board your thoughts about it.

OK, the register/add to cart. Use this code instead of the register link code:

<?php echo do_shortcode('[ESPRESSO_CART_LINK anchor="Register" event_id="' . $event->id . '"]'); ?>

Feel free to change the anchor text.

The columns: there are two areas in the table, one that has a class espresso-table-header-row and one that has a class espresso-table-row

In the first you will see X number of < th > tags, in the second you will see X number of < td > tags. These are the cells, but also make up the columns, so if reduce them you reduce the columns, note that they have to be the same number of cells otherwise the table will look really weird and broken.

Hope that helps.


Chris

August 13, 2013 at 8:36 am

Thanks Dean!

Is this the code snippet which I replace using the code you posted?

$register_button = '<a id="a_register_link-'.$event->id.'" href="'.get_option('siteurl').'/?page_id='.$event_page_id.'&regevent_action=register&event_id='.$event->id.'&name_of_event='.stripslashes_deep($event->event_name).'">Register</a>';

Thanks for your help. πŸ™‚


Josh

  • Support Staff

August 13, 2013 at 8:46 am

Hi Andy,

It doesn’t look like the code that gets replaced. It would be later where it uses the $register_button variable.


Chris

August 13, 2013 at 4:04 pm

I found the $register_button variable – looking a lot neater now. πŸ™‚

Thanks so much for your help. πŸ™‚


Josh

  • Support Staff

August 13, 2013 at 10:28 pm

You’re welcome.

The support post ‘How best to display multiple sessions for one event for easy viewing?’ 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