Support

Home Forums Multiple Event Registration Add-on How to: Add Venue and Start-End Date/Time to Multi-Event registration checkout

How to: Add Venue and Start-End Date/Time to Multi-Event registration checkout

Posted: April 26, 2016 at 9:31 am

Viewing 5 reply threads


Mazzy

April 26, 2016 at 9:31 am

Is there a way to have this displayed for each event?


Tony

  • Support Staff

April 26, 2016 at 1:34 pm

Hi Mazzy,

Could you provide further details on where you would like those details to be output please?

Possibly include a screenshot that highlights the location?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Mazzy

May 1, 2016 at 6:17 pm

Sure add some “events” to the cart and you can see it, the main registration page event cart checkout (you will have to register to on the site or contact me via email and I can create a user account for you)

Example:
http://jfk.wpengine.com/registration-checkout/?event_cart=view#checkout

and of course the registration checkout:
http://jfk.wpengine.com/registration-checkout/


Mazzy

May 1, 2016 at 6:22 pm

Event Checkout
Event Cart


Mazzy

May 1, 2016 at 6:25 pm

Sorry bad links (can’t edit messages for some reason)

Event Cart
Event Checkout


Josh

  • Support Staff

May 2, 2016 at 1:28 pm

Hi there,

Adding info to the registration checkout page about the event or the registration (like the venue and start end date/time) involves adding PHP to the attendee_info_main.template.php in EE4. You can copy this template over to your theme and EE4 will use it. Then you can add some PHP code to display the venue or date information.

For example, the venue can be displayed with:

<?php $venue = array_values($registration->event()->venues())[0];
if ( $venue instanceof EE_Venue ) { 
	echo '<h5>Location: ' . $venue->name() . '</h5>';
} ?>

Please note the above code requires the server has at least PHP 5.4. If you have PHP5.3, the above code will need to be written, or (recommended) you update your server to a newer version of PHP.

Similar to the above, the following will output dates and times:

<?php 
$datetimes = array_values( $registration->ticket()->datetimes())[0]; 
echo $datetimes->date_range() . ' ' .$datetimes->time_range();
?>
Viewing 5 reply threads

The support post ‘How to: Add Venue and Start-End Date/Time to Multi-Event registration checkout’ 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