Support

Home Forums Event Espresso Premium Adding text to start time & end time 2

Adding text to start time & end time 2

Posted: November 27, 2014 at 10:17 am

Viewing 3 reply threads


Ryan DesRoches

November 27, 2014 at 10:17 am

Hi,

I saw a different thread about this same topic, but I actually need to have text after the start and end times, while supporting multiple start and end times. We run a bus company with different pickup/drop off locations/times that the person registering can use.

Basically, we want it to look something like this:

Start Time: 6:00am Mass Pickup
End Time: 10:00pm Mass Dropoff

Start Time: 6:30am CT Pickup
End Time: 10:30pm CT Dropoff

etc. . .

I am using WordPress version 4.0.1, with EE version 3.1.36.6.P


Tony

  • Support Staff

November 27, 2014 at 12:06 pm

Hi Ryan,

When you setup multiple start/end times within an event, you’ll notice the registration page changes to use a dropdown of available times – http://take.ms/Z6Sy0

This is done using a core function which is pluggable and can overridden, however altering that function will modify all locations within EE that use that function.

Are you comfortable with PHP/HTML and FTP?


Ryan DesRoches

December 13, 2014 at 11:19 am

Tony,

Sorry that it took so long to reply, however this is something that I am still interested.

The times dropdown is exactly what I want, I just need extra text in those fields to use them for Times and Pickup locations for this current project – since they are tied together.

I am good with HTML and FTP. I know enough PhP to be dangerous 🙂

I haven’t done “pluggable” core function changes yet, do you think you can give me some guidance on what file I need and what I might need to do?

Thanks


Josh

  • Support Staff

December 17, 2014 at 12:31 pm

Hi Ryan,

The file that has the function for the time selector is /event-espresso/includes/functions/time_date.php. The function is event_espresso_time_dropdown().

You can copy the entire function into /wp-content/uploads/espresso/custom_functions.php or into your own WordPress plugin (make sure the plugin loads before Event Espresso does though) and it will override the core function.

I can also recommend taking a look at Event Espresso 4 because it would allow for selecting different options like this one without modification and you’ll get the added benefit of being able to set a limit for each option.

Viewing 3 reply threads

The support post ‘Adding text to start time & end time 2’ 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