Support

Home Forums Recurring Events Manager Add-on Adding Event Date to confirm_display.php

Adding Event Date to confirm_display.php

Posted: November 1, 2012 at 1:02 pm


Greg Phillips

November 1, 2012 at 1:02 pm

We are using recurring events and want to display the selected event date under the event name on confirmation_display.php. Could you let me know what code needs to be added to accomplish this?

I added the relevant code here from line 17-22 with the code button but I don’t see it. Maybe you do?

  • This topic was modified 7 years, 12 months ago by  Greg Phillips.


Tony Warwick

November 1, 2012 at 2:50 pm

Copy the code from line 17-22.

Paste it underneath, change ‘Event Name’ to ‘Event Date’ & $event_name to $start_date.

Go to payment_page.php

Copy line 246. Should start ‘$start_date =’

Paste it above, around line 80 on it’s own line.

That’s it.

You have you moved these files to /uploads/espresso/ so you don’t lose your customizations after EE updates?


Greg Phillips

November 2, 2012 at 3:52 pm

Thanks Tony. Made the first change, but the date value is not populating on the confirmation page. Here’s what I have:

Also, I wasn’t able to make your second change – the payment_page.php only has 44 lines of code. Were you referring to registration_page.php? If so, line 245 is: ‘start_date’ => ” . event_espresso_no_format_date($start_date, get_option(‘date_format’)) . ”, but, this syntax may not be correct for pasting the code on its own line.

  • This reply was modified 7 years, 11 months ago by  Greg Phillips.
  • This reply was modified 7 years, 11 months ago by  Greg Phillips.


Tony Warwick

November 2, 2012 at 4:27 pm

Here are the files I changed. In the folders they need to be in. http://depositfiles.com/files/t5ujcy0n2

confirmation_display.php is in templates, you’ve done the code change there yes? payment_page.php – if you open confirmation_display.php and look at the comments at the top. You see:

//This page gets all of the varaibles from includes/process-registration/payment\_page.php 

So thats the file you copy line 246 and past at line 80. I can’t post php code otherwise I’d just show you the code. Have a look at the files. Payment_page.php has a comment:

//ADD EVENT DATE

Search for that around line 80, you’ll see the line added.

Also – the code change made on confirmation_display.php is what places the date on a new line, well actually in a new row in the table . The payment page is just the variable that holds the date.

  • This reply was modified 7 years, 11 months ago by  Tony Warwick.
  • This reply was modified 7 years, 11 months ago by  Tony Warwick.


Greg Phillips

November 2, 2012 at 4:36 pm

Ahhh – didn’t realize the payment_page.php was in the includes. I had a different version in my uploads/ee/templates directory


Greg Phillips

November 2, 2012 at 4:54 pm

Just to confirm, do I need to move a copy of the revised payment_page.php (from includes), into uploads/espresso/ ? It looks like a completely different file than the payment_page.php template file.


Tony Warwick

November 2, 2012 at 5:06 pm

It is a different file. AFAIK you can’t move a copy of include files to uploads/espresso/ you’ll need to update that file each time there’s an update.


Greg Phillips

November 4, 2012 at 11:59 am

Thanks Tony. Really appreciate your help. Works perfectly now!

The support post ‘Adding Event Date to confirm_display.php’ 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.

Support forum for the Recurring Events Manager add-on.
Documentation for Recurring Events Manager Add-on http://eventespresso.com/wiki/recurring-events-manager-add-on/

Status: closed

Updated by  Greg Phillips 7 years, 11 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[gravityform id=80 title=false description=false ajax=false]
<div class='gf_browser_unknown gform_wrapper' id='gform_wrapper_80' ><form method='post' enctype='multipart/form-data' id='gform_80' action='/topic/adding-event-date-to-confirm_display-php/'> <div class='gform_body'><ul id='gform_fields_80' class='gform_fields top_label form_sublabel_below description_below'><li id='field_80_1' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_1' >First name<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_text'><input name='input_1' id='input_80_1' type='text' value='' class='medium' aria-required="true" aria-invalid="false" /></div></li><li id='field_80_2' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_2' >Email address<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_email'> <input name='input_2' id='input_80_2' type='email' value='' class='medium' aria-required="true" aria-invalid="false" /> </div></li><li id='field_80_3' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' >GDPR Agreement<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_checkbox'><ul class='gfield_checkbox' id='input_80_3'><li class='gchoice_80_3_1'> <input name='input_3.1' type='checkbox' value='I consent to have this website store my submitted information so they can respond to my inquiry.' id='choice_80_3_1' /> <label for='choice_80_3_1' id='label_80_3_1'>I consent to have this website store my submitted information so they can respond to my inquiry.</label> </li></ul></div></li><li id='field_80_4' class='gfield gform_validation_container field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_4' >Comments</label><div class='ginput_container'><input name='input_4' id='input_80_4' type='text' value='' autocomplete='off'/></div><div class='gfield_description' id='gfield_description_80_4'>This field is for validation purposes and should be left unchanged.</div></li> </ul></div> <div class='gform_footer top_label'> <input type='submit' id='gform_submit_button_80' class='gform_button button' value='Download Now' onclick='if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} ' onkeypress='if( event.keyCode == 13 ){ if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} jQuery("#gform_80").trigger("submit",[true]); }' /> <input type='hidden' class='gform_hidden' name='is_submit_80' value='1' /> <input type='hidden' class='gform_hidden' name='gform_submit' value='80' /> <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' /> <input type='hidden' class='gform_hidden' name='state_80' value='WyJbXSIsIjBiNjdjZjkyMDUzOWUxOWY5Y2NiZjIwMzM4YjA1Mjk4Il0=' /> <input type='hidden' class='gform_hidden' name='gform_target_page_number_80' id='gform_target_page_number_80' value='0' /> <input type='hidden' class='gform_hidden' name='gform_source_page_number_80' id='gform_source_page_number_80' value='1' /> <input type='hidden' name='gform_field_values' value='' /> </div> </form> </div><script type='text/javascript'> jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 80) {} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'> jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [80, 1]) } ); </script>
[i]
[i]