Support

Home Forums Event Espresso Premium Show Event Times on Registration Page

Show Event Times on Registration Page

Posted: December 26, 2014 at 3:14 pm

Viewing 2 reply threads


Daniel Samsel

December 26, 2014 at 3:14 pm

I’ve read this posts:
https://eventespresso.com/topic/in-ee3-how-to-show-event-time-on-event-registration-page/

It states approx. line 131. I don’t see where the code they provide would fit.
If you could provide a more precise location for the code or more detail, since I may be seeing something different that would be a great help.
I am running Event Espresso Version 3.1.36.6.P on WordPress 4.1,

Here is what I see from Lines 123 – 141:
if ($multi_reg && event_espresso_get_status($event_id) == ‘ACTIVE’/* && $display_reg_form == ‘Y’*/) {
// Uncomment && $display_reg_form == ‘Y’ in the line above to hide the add to cart link/button form the event list when the registration form is turned off.

$params = array(
//REQUIRED, the id of the event that needs to be added to the cart
‘event_id’ => $event_id,
//REQUIRED, Anchor of the link, can use text or image
‘anchor’ => __(“Add to Cart”, ‘event_espresso’), //’anchor’ => ‘‘,
//REQUIRED, if not available at this point, use the next line before this array declaration
// $event_name = get_event_field(‘event_name’, EVENTS_DETAIL_TABLE, ‘ WHERE id = ‘ . $event_id);
‘event_name’ => $event_name,
//OPTIONAL, will place this term before the link
‘separator’ => __(” or “, ‘event_espresso’)
);

$cart_link = event_espresso_cart_link($params);
}else{
$cart_link = false;
}


Josh

  • Support Staff

December 26, 2014 at 4:02 pm

Hi there,

Are you looking to add event times to the event list page? The registration page already has the event times listed.

Anyway, the event list page uses the event_list_display.php template and you’ll find where to add the times next to the date around line 85 of the current version.


Daniel Samsel

January 6, 2015 at 12:31 pm

Thank you Josh.
That did it.
It was the location of the line.

Viewing 2 reply threads

The support post ‘Show Event Times on Registration Page’ 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