Viewing 9 replies - 1 through 9 (of 9 total)
  • caimin_nwl

    (@caimin_nwl)

    Hi,

    Automatically redirecting isn’t something that can be done without custom development by some familiar with AJAX and jQuery.

    That said, you can add a link manually to the message box that appears on the page once the booking has been sent.

    To do that, got to Events > Settings > Bookings (top tab).

    Then, under Customize Feedback Message, find the textbox next to Successful pending booking.

    You can add a link by using HTML code like this:

    <a href="YOURLINK">Name of your link</a>

    Let me know if you need more help with this.

    Thread Starter citydealer1

    (@citydealer1)

    Hi caimin_nwl,

    Thanks very much for your reply. I’ll look into the booking settings as you suggested, however it would be great if you could let me know which file will need to be amend in order to include the automatic redirection once the user clicks on the send your booking button.

    I know someone who is familiar with AJAX and jQuery who is willing to help 😉

    Thanks

    agelonwl

    (@angelonwl)

    you can add this snippet in your theme header.php withing <head> tag

    <script>
    jQuery(document).bind('em_booking_success', function() {
      window.location.href = 'http://your-domain.com';
    });
    </script>
    Thread Starter citydealer1

    (@citydealer1)

    Hi agelonwl,

    Thanks for your help. I’ve tried the code replacing http://your-domain.com with the intended url but it doesn’t work. I’ve place the code in my theme header.php file after <?php wp_head(); ?> and before </head>.

    Any other suggestions?

    agelonwl

    (@angelonwl)

    hmm, works for me

    my exact code

    <head>
    <?php wp_head(); ?>
    <script>
    jQuery(document).bind('em_booking_success', function() {
      window.location.href = 'http://google.com';
    });
    </script>
    </head>
    Thread Starter citydealer1

    (@citydealer1)

    I’ve tried that but it still doesn’t work 🙁

    caimin_nwl

    (@caimin_nwl)

    Can you paste a link to the page you have the code on?

    agelonwl

    (@angelonwl)

    how about something like this

    jQuery(document).ready( function($){
     jQuery(document).bind('em_booking_success', function() {
       window.location.href = 'http://your-domain.com';
     });
    });
    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Include a page redirection after clicking on Send Your Booking’ is closed to new replies.