• Hello to the team,

    I hope everybody is fine.

    I have an issue with the redirection of the user after a reservation.

    It works fine when the reservation form is filled in completely with no error.
    in that case, the user is redirected on the confirmation page like it should do.

    The problem I have is when there is an error.
    The error can be the hour field remains empty, or the email adress is not good or else.
    In that case, the user is redirected on the confirmation page as well which is not right.
    And further, the fields of the form appears at the bottom of the page.

    When no redirection to a confirmation page is set up, an error within the form keeps the user on the form with error messages. Which is good.

    How could I make it work like that using a redirection to a confirmation page ?

    In order for you to replicate that situation, here is one page on which the reservation page is present. You need to scroll to find the form towards the bottom of the page : https://tests.lecolisee-lux.com/

    Thank you very much for your help.
    I really need it.


    Cyril

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Cyril,

    How are you performing the redirection when a booking form is submitted? This isn’t a feature of the base plugin so perhaps it’s a customization you’re using?

    Thread Starter larecetteduweb

    (@larecetteduweb)

    Hello Nate,

    Thank you for the reply.

    Well, no customization that I know of.

    Here is a screenshot of the option/functionnality I used : https://goo.gl/7SWh5z

    Thank you very much if you do have an idea.

    Have a good day,


    Cyril

    Hi Cyril,

    I received your email as well. In it, you mentioned that you are trying to track reservations through Adwords.

    The Booking Page is not meant to be a confirmation page and, as you’ve seen, the form will be submitted there even if the booking is not completed.

    Instead, you’ll need to hook into when the booking is inserted into the database to be certain a submission has completed. I’ve written a tiny addon which will allow you to do this:

    https://gist.github.com/NateWr/414b3a325c42f5369f76

    To use it, click the Download button at the top, unpack the .zip file, and open the .php file in a text editor. Find the following line near the bottom:

    
    <!-- Add your tracking snippet here -->
    

    You can add your Google Adwords tracking snippet there, then save the file and upload it to your /wp-content/plugins/ directory. You can then activate it from the Plugins page in your WordPress admin area.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirection on confirmation page after a reservation’ is closed to new replies.