Posted: August 12, 2013 at 8:00 am
|
Hi, I would like to know if it possible to remove the Payment overview page. Basically once the user click on “Confirm Registration” it should go straight to the Thank you page. Alternatively, if this is not possible I would also be happy to go through the standard flow with some changes. Specifically the possibility to replace the “Please choose a payment option” with a button to the tank you page. The problem derives from the fact that we don’t need to handle payments online, so this page is useless for us and potentially confusing for our customers. Many thanks. |
|
Hi John, If I am understanding correctly, your set up is that you have paid for events, but no gateway selected? The Payment overview page can be skipped but only if they are being sent to a payment gateway, such as PayPal. The thank you page is only used after they have paid. Even with free events the user actually doesnt go to the thank you page they remain on the payment overview page. As such you would need to go down the alternative option you outlined. I would advise using some CSS to hide the “Please choose a payment option” box, but you would need to modify the template file to add in a link to the thank you page. CSS #payment-options-dv { display:none; } PHP <?php echo '<h2 style="text-align:center;"><a href="http://www.yoursite.com/thank-you/">Final Step</a></h2>'; ?> This would need to go before the final two closing divs in the payment_page.php template (copy it to the wp-content/uploads/espresso/templates folder first and modify it there). Obviously feel free to amend the wording I gave it and change the url in the link to your actual thank you page’s url. Hope that helps. |
|
Hi, thanks for the tip! Everything works as expected except for one thing. When I click on the new link, I get a warning from the browser asking me if I want to leave the page. How can I remove this box? |
|
https://dl.dropboxusercontent.com/u/8170265/confirm%20navigation%20box.png |
|
Hmm, yes, thats actually a feature, to help stop users going off track. I will need to get back to you on that. |
|
OK, add this to the bottom of your payment_page.php before the last two divs <script> jQuery(document).ready(function(){ jQuery('body').append('<input id="bypass_payment_page" type="hidden" value="false">'); jQuery('body').append('<input id="allow_leave_page" type="hidden" value="true">'); }); </script> |
|
Perfect! This does exactly what we needed! Thank you very much! |
|
You’re welcome! If you get time, please consider sharing Event Espresso https://eventespresso.com/about/help-us-help-you-how-to-share-event-espresso/ |
The support post ‘Customize Event Overview 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.