Support

Home Forums Event Espresso Premium Displaying event details without need to register

Displaying event details without need to register

Posted: January 7, 2014 at 7:25 pm


Peter Holm

January 7, 2014 at 7:25 pm

Hi,
Currently only 10% of our events require registration. We have tried the events list custom view and the calendar. For events with no registration there is actually less info (no times) on the view details screen from calendar and the events list always displays register as the link. I’m sure others have had this issue but can’t find any documentation on it. We don’t really need all the registration functionality just now but hope to utilise it in the future. We are open to suggestions
Thanks in advance

Pete


Dean

January 8, 2014 at 6:19 am

Hi,

I’m not 100% sure what you are trying to remove, but a good starting point would be to remove the registration form. You can do this in each event, by changing the option “Display registration form?” to No. This is found on the right hand side, in the Event Options box.


Peter Holm

January 8, 2014 at 11:53 am

Hi,
Here is a link to the website. http://www.dev1.daveandrew.co.uk/list-of-courses/
On this page we would like to add the start and end times and also display view details where registration has been turned off, which is most.
When we click on register for the second course we get this, which has no start end times of the course, http://www.dev1.daveandrew.co.uk/event-registration/?ee=191. I don’t understand why the details of the course for example start end times are not displayed.

We would also like to remove the view details box from the calendar when you click on an event which has no registration, for example 18th Jan.

We are new to the product so any help you can give us would be gratefully received. I hope this better explains the issue.

Cheers


Josh

  • Support Staff

January 9, 2014 at 9:04 am

Hi Peter,

The reason that the event times display within the registration form area is because there’s a feature that allows the selection of a time slot within the registration form. So if the event has multiple times, the time can be selected when the registration form is filled out. The event details page shares the same template as the registration page. The section that displays the registration form doesn’t get displayed if the display registration form option is set to No.

Adding the registration time to display on events that do not have a registration form can be accomplished by using an action hook. By using a hook you avoid directly editing the event details/registration template.

Here’s something you can add to your custom file add-on’s custom_functions.php file or in a custom snippet plugin that will add times for the events that have the registration forms set to not display:

add_action( 'action_hook_espresso_social_display_buttons', 'ee_display_event_times', 10, 1);

function ee_display_event_times( $event_id ) {
	
	//get info for this event
	$event = espresso_get_event( $event_id );
	$display_reg_form = $event->display_reg_form;

	// display the event times if the registration form is not set to display
	if ( $display_reg_form == 'N' ) {
		echo '<p class="event_time">';
		echo event_espresso_time_dropdown( $event_id );
		echo '</p>';
	}
}

With regard to your other request:

We would also like to remove the view details box from the calendar when you click on an event which has no registration, for example 18th Jan.

I’m afraid that this would require hacking the calendar script directly, and isn’t something that I would recommend doing. If you really need to remove the View Details text that displays when the event has not registration, you can remove the View Details text from line 725 of the calendar plugin’s espresso-calendar.php file.


Peter Holm

January 9, 2014 at 6:42 pm

Hi Josh,

Thanks for the detailed reply. I will take a look and thanks for the advice.


Dean

January 10, 2014 at 2:00 am

Please let us know if you need any further assistance.

The support post ‘Displaying event details without need to register’ 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