Support

Home Forums Event Espresso Premium Event Registration Form in template

Event Registration Form in template

Posted: September 5, 2013 at 7:39 am

Viewing 12 reply threads


Klaus M

September 5, 2013 at 7:39 am

Hi, i would like to embedd/show/integrate the EVENT REG FORM (the one from http://www.DOMAIN.com/event-registration/?ee=X) in my post template. including it with

<?php
$path = $_SERVER[‘DOCUMENT_ROOT’];
$path .= “/wp-content/plugins/event-espresso/templates/registration_page_display.php”;
include_once($path);
?>

doesn’t really help (it’s missing the event_id i guess).

Any idea? Thanks!


Josh

  • Support Staff

September 5, 2013 at 8:44 am

Hi Klaus,

I can advise using the [ESPRESSO_REG_FORM] shortcode inside a do_shortcode. You’ll need to figure out a way to pass in the event ID for the event you want to display though.

The event_post.php template can likely be re-used to accomplish building out a page template that does what you’re looking to do.


Klaus M

September 6, 2013 at 3:11 am

Thanks. Now i’d like to customize, tweak the way that [ESPRESSO_REG_FORM] shows up a little. Where does that shortcode refer to? What file do i have to edit for some results? Thanks!


Tony

  • Support Staff

September 6, 2013 at 5:40 am

Hi Klaus,

[ESPRESSO_REG_FORM] uses a function tied into other shortcodes, if you alter the function you’ll alter all the shortcodes that use that function.

If you would just like to alter the look of it some you would be much better using CSS.


Klaus M

September 7, 2013 at 5:08 am

Ok. After submitting that form the user is lead to xyz.com/event-registration/

I would like to add a few words over there. What file do i have to chose for? I could not find it. Thanks!


Tony

  • Support Staff

September 9, 2013 at 4:03 am

The file event_list_display.php in event-espresso/templates/ is used for event-registration.

Copy both event_list.php and event_list_display.php to wp-content/uploads/espresso/templates and edit those files there so they are not replaced when Event Espresso updates.


Klaus M

September 9, 2013 at 5:14 am

Thanks for the advice. But when i copy the files to wp-content/uploads/espresso/templates and edit them there, how does EE know that those are the files to use?!


Josh

  • Support Staff

September 9, 2013 at 11:19 am

Event Espresso has a function named event_espresso_require_template that checks the templates folder first and if if the template isn’t there, it loads up the default from the core plugin.


Klaus M

September 10, 2013 at 8:03 am

Hm. I have tried to see my edits in the event_list_display.php but i can’t see it on the comfirmation page. Is this really the file to edit as it looks like it displays on the the event list the users have registered for. thanks for your help!


Tony

  • Support Staff

September 10, 2013 at 9:05 am

Those files are for the event-registration page when no variables are passed. Once you have filled a Reg Form it loads confirmation_display.php.

So the file you need to edit is confirmation_display.php. Again I would move this file to uploads/espresso/templates and edit from there.

Apologies for the confusion.


Klaus M

September 13, 2013 at 3:21 am

the file to edit was “payment_page.php”. ?! is that because the event is free?

well. that’s ok now. but where can i uncomment the sidebar and the page title of that page?!
payment_page.php has no sidebar in its file 🙂

thanks!


Klaus M

September 13, 2013 at 4:17 am

Please mark my last question as stupidest question ever asked in this forum and the mark this topic as RESOLVED. sorry!


Dean

September 13, 2013 at 4:33 am

“Please mark my last question as stupidest question ever asked”

There is no such thing as a stupid question.

Marked as resolved.

Viewing 12 reply threads

The support post ‘Event Registration Form in template’ 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