As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

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.