Support

Home Forums Event Espresso Premium How to add Location to Checkout Page (EE4)

How to add Location to Checkout Page (EE4)

Posted: March 28, 2017 at 4:38 pm

Viewing 5 reply threads


cfreshmartech

March 28, 2017 at 4:38 pm

Hello,

On the Checkout page, I’d like to add the Venue information right under the class name and before the details. How can I achieve this?


Tony

  • Support Staff

March 29, 2017 at 8:31 am

Hi there,

Can you add a screenshot that shows the location you want to add the Venue info?

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

I’ll check if there is a hook available that can be used.


cfreshmartech

March 29, 2017 at 12:38 pm

Thank you! Here’s a screenshot of where we wanted to add it. Please let me know if you have any questions. Thanks again!


cfreshmartech

March 29, 2017 at 2:11 pm

Just to note “April 2nd @ 3PM” is the Title of the event. Just didn’t want to confuse you as that’s NOT the event date and time coming from the Event Settings.


Josh

  • Support Staff

March 30, 2017 at 4:35 pm

Hi there,

You can copy the /event-espresso-core-reg/modules/single_page_checkout/reg_steps/attendee_information/attendee_info_main.template.php file over to your WordPress theme, then look for the code that displays the name of the event, which looks like this:

<h4 id="event_title-<?php echo $registration->event()->ID() ?>" class="big-event-title-hdr">
<?php echo $registration->event()->name(); ?>
</h4>

Right after that, you can add this:

<h5>
<?php $venues = $registration->event()->venues(); 
foreach($venues as $venue){
 echo $venue->get('VNU_name') . "<br>";
}?>
</h5>


cfreshmartech

March 30, 2017 at 4:36 pm

You’re the best! I’ll give it a shot. Thank you!

Viewing 5 reply threads

The support post ‘How to add Location to Checkout Page (EE4)’ 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