Okay
  Public Ticket #2813977
window.beforeConfirmedBooking = function() only if serviceID is 15
Closed

Comments

  • Marc-Philipp started the conversation

    Hey everybody, :)

    I know about the possibility to skip the "congratulation"-window and redirect the user directly after booking with this script:

    <script>
    window.beforeConfirmedBooking = function()
    {
    window.location.href = “your-custom-url”;
    };
    </script>

    I love that. Now I would like to let this happen, but only with one specific serviceID . If the costumer booked another service, he/she should see the normal confirmation or be redirected to another url. I tried if else but I was not successful with that. 

    Can you help me to make this script better?

  • [deleted] replied

    Hi, Marc-Philipp,

    Thank you for choosing Amelia.

    I will forward this question to our Level 2 support.

    We will get back to you at the earliest possible time.

    Best Regards.

  • Marc-Philipp replied

    Hey :)

    Thank you a lot. I am looking forward to hearing back from you. 

  • [deleted] replied

    Hi Marc-Philip,

    thank you for contacting back; Liza is out of the office at the moment, so I hope that you don't mind me replying.

    Unfortunately developers advised that this is not possible at the moment for only one service; this change is for all of service finish pages.