Posted: January 30, 2014 at 3:27 pm
|
This is what I have so far: http://oaksterdamuniversity.com/o/schedule/ Is there a way to make a custom table that will show the following: Course / Dates / Days / Time / Price / Course Code / Status / Book [EVENT_CUSTOM_VIEW] seems to be working but does not list price or times. [EVENT_CUSTOM_VIEW template_name=”courses-table”] is not working I’m the developer for Aseem Sappal. |
|
Hi Tom, There’s a couple of things you can do: 1) Edit the default Event Table template that comes with the Custom Templates addon to show the prices (everything should be in the $event array so its just a case of adding a couple more columns) 2) You could check out the Grid template All the different templates are showcased here – http://demoee.org/custom-template-add-on/ Also the courses-table template doesn’t exist any more (it became the default event table), where did you see this? If it is in the documentation then I can remove that mention. |
|
Dean, thanks for the quick response. My PHP skills are very minimal. Would like to get this page: http://oaksterdamuniversity.com/o/schedule/ to look like this page: http://lsptraining.co.uk/ (scroll down to bottom) What shortcode do I insert on the course schedule page and what php template do I have to alter? I’m assuming it is the espresso_table.php Currently I have this shortcode installed on the course schedule page: [ESPRESSO_TABLE max_days=”30″ qty=”3″ category_id=”gracecard” order_by=”state”] If this is beyond my skills, how can we get the job done? I can give you login if you need to look at dashboard. Thanks, Tom |
|
Dean, I managed to get the table set up with place-holders for the course time and status, but the results are not showing in the table: http://oaksterdamuniversity.com/o/schedule/ |
|
Hi, You would want the headers to be something like this <th class="th-group"><?php _e('Status','event_espresso'); ?></th> <th class="th-group"><?php _e('Event','event_espresso'); ?></th> <th class="th-group"><?php _e('Date','event_espresso'); ?></th> <th class="th-group"><?php _e('Time','event_espresso'); ?></th> <th class="th-group"><?php _e('Cost','event_espresso'); ?></th> <th class="th-group"><?php _e('','event_espresso'); ?></th> <th class="th-group"></th> and the main rows to be something like this <td><?php $capacity = do_shortcode('[ATTENDEE_NUMBERS event_id="'.$event->id.'" type="available_spaces"]'); if($capacity == "0") { echo "Full"; } else { echo "Open"; }; ?></td> <td id="event_title-<?php echo $event->id?>" class="event_title"><?php echo stripslashes_deep($event->event_name) ?></td> <td id="start_date-<?php echo $event->start_date?>" class="start_date"><?php echo event_date_display($event->start_date, get_option('date_format')) ?></td> <td id="start_time-<?php echo $event->start_time?>" class="start_date"><?php echo event_date_display($event->start_time, get_option('time_format')) ?></td> <td id="start_cost" class="start_date"><?php echo $event->event_cost?></td> <td class="td-group reg-col" nowrap="nowrap"><?php echo $event_status == 'ACTIVE' ? $live_button . $cart_link : $live_button; ?></td> |
|
Perfect! Thanks Dean |
The support post ‘Events Table Installation’ 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.