Support

Home Forums Event Espresso Premium Skip Payment Options Page

Skip Payment Options Page

Posted: February 20, 2014 at 9:25 am


Amy Bridge

February 20, 2014 at 9:25 am

Hi,

I have set to skip confirmation page, but can you also skip the payment options page?


Amy Bridge

February 20, 2014 at 9:29 am

If this is not possible, can someone please tell me which file I need to edit to make changes to the payment options page please.


Amy Bridge

February 20, 2014 at 12:27 pm

Suppose I should actually state what it is I am trying to achieve as I maybe barking up the wrong tree. We want to invoice people who register from our accounting software as our pricing is tailored to specific clients. What I am trying to achieve is once the client clicks on the register button, he is sent directly to the thank you page and the event is registered. I have managed to hide the payment options, but this is not actually solving the problem. Any idea on how I could achieve this would be greatly appreciated.


Sidney Harrell

February 20, 2014 at 9:36 pm

It needs to hit either the confirmation page or the payment page in order to save the attendee to the DB. If you want to change the wording / layout of the “Payment Page” so that it’s more of a “Thank You for registering” page, you can edit the payment_page.php template file (copy it from plugins/event-espresso/templates to uploads/espresso/templates first so your changes will not be overwritten when you update).


Amy Bridge

February 21, 2014 at 1:09 am

Hi Sydney,

Thanks for your reply. I have checked the template folder and there isn’t a payment_page.php. Is is the one in the includes folder.

With regards to moving template files, I have tried this, but it doesnt look the one in uploads/espresso/templates is used over the origional?


Dean

February 21, 2014 at 1:52 am

Hi,

The payment_page.php file (original) is located in event-espresso/templates.

Most template files when copied over to the wp-content/uploads/espresso/templates directory will over rule the defaults.


Amy Bridge

February 21, 2014 at 2:10 am

Hi,

Scrap the first comment, found the file under templates….just been blind.

Second question is still relevant though.


Tony

  • Support Staff

February 21, 2014 at 3:24 am

Hi Amy,

uploads/espresso/templates/payment_page.php should be used in place of templates/payment_page.php if it is available. Can you screenshot the page in question as we may be referencing different pages?

Also can you link to an event we can run a test registration on so we can view this please?

One thing to note, you mention hiding the payment options. The issue with this is they Payment Gateways close the registration session, without them the session will remain ‘open’, meaning that if a user registers for multiple events one after the other, the only event there session will show is the last event.

So say they Register onto Event 1, all the way through to the thank-you page but no payment options (well actually without closing their session), then register onto Event 2 and do the same, there will be no record of the attendee for Event 1.

It is likely the best way to handle this kind of situation with EE is to create a custom gateway (based on the current Invoice gateway perhaps) then use this gateway to provide instructions and have the attendee finalise the registration through that.


Amy Bridge

February 21, 2014 at 4:08 am

HI Tony,

Thanks for your response. We would really like the payment page to be the last page. A final confirmation to the thank you page is just an unnecessary complexity in the process.

Is there code I can ad to the payment page or the payment_gateway page that would close the session?

Awesome and speedy responses, thankyou.


Josh

  • Support Staff

February 24, 2014 at 10:14 am

Hi Amy,

I don’t know if this will work because it could potentially end the session too early, but the [ESPRESSO_CANCELLED] shortcode will close the session. It can be added to a template file by using the WordPress do_shortcode function.


Amy Bridge

March 2, 2014 at 10:09 pm

HI Josh,

2 Questions.
1 – What happens if the session isn’t closed? I mean, the attendee is still registered for the course and we can see their details?
2 – If I use this short code, how can I tell if it has worked?


Josh

  • Support Staff

March 3, 2014 at 2:08 pm

Hi Amy,

If the session doesn’t close the registration could end up getting overwritten and you will not see their record. Especially if someone tries to register for a second person using the same computer.

You can add the following to a custom snippets plugin or your theme’s functions.php file and it will output the Session ID into the footer of the web page if you’re logged into the site as admin. When the session ID changes, you’ll know the session is cleared.

add_action ('wp_footer', 'my_print_session_to_footer');

function my_print_session_to_footer() {
	if (current_user_can('install_plugins'))
		print_r ($_SESSION); 
}


Amy Bridge

March 4, 2014 at 3:02 am

Hi Josh,

Thanks so much for your help. I added the code to the template footer file. The only thing I am not sure about is the session ID changing. I wasn’t sure what it was, so not sure of the new displayed is new or old. This is what the output is:

Array ( [espresso_session] => Array ( [id] => 7ad2573567f1bf4798feb81606e01d0d-53159c078e8fd8.72186430 [events_in_session] => [grand_total] => ) )


Amy Bridge

March 4, 2014 at 3:03 am

O wait. would this out on all the pages and it would change from the registration page to the confirm page?


Amy Bridge

March 4, 2014 at 3:06 am

ok, think it has worked. On the register event page the session id was:
7ad2573567f1bf4798feb81606e01d0d-53159c078e8fd8.72186430

On the confirmation page it is

7ad2573567f1bf4798feb81606e01d0d-5315a55fd0e096.40047364

Thanks so much for your help.


Josh

  • Support Staff

March 4, 2014 at 7:03 am

Hi Amy,

In this case you’ll want to make sure that registrations don’t get overwritten when you try to register one after another, which you can verify by testing.

The support post ‘Skip Payment Options Page’ 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