Posted: August 12, 2013 at 9:12 am
|
I have 25 x 2 hour sessions in 1 50 hour event. 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! |
|
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. |
|
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. π |
|
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. π |
|
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. |
|
Thanks Dean! Is this the code snippet which I replace using the code you posted?
Thanks for your help. π |
Hi Andy, It doesn’t look like the code that gets replaced. It would be later where it uses the $register_button variable. |
|
|
I found the $register_button variable – looking a lot neater now. π Thanks so much for your help. π |
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.