I can't get this code to work. Maybe it only works for an event and not for a service. Then I found another ticket from someone with the same problem and Stefan shared the following code in it: https://tmsplugins.ticksy.com//ticket/3634659/
<script> window.ameliaActions = {
beforeBooking: function (success = null, error = null, data) { //triggered when the "Confirm" button is clicked but before the booking is completed. //This hook currently doesn't work for Mollie and WooCommerce payments console.log('Before booking is created HOOK') console.log(data) console.log('------------') window.location.href = "https://go.helmutberger.life/am-telefon-termine-dankesseite/"; }, }
The submitter of the question found that the redirect works with this code, but the registration of the login is not saved in Amelia. Stefan's answer to that problem is not publicly available. I tried to activate the script with a delay, but the result is that either the redirect works or the login is saved, but never both at the same time.
My question is: was Stefan able to share a solution or did he find that it does not work?
Modification was just to delay redirect via setTimeout:
window.ameliaActions = {
beforeBooking: function (success = null, error = null, data) {
//triggered when the "Confirm" button is clicked but before the booking is completed.
//This hook currently doesn't work for Mollie and WooCommerce payments
console.log('Before booking is created HOOK')
console.log(data)
console.log('------------')
setTimeout(() => {
window.location.href = "https://google.com";
},
500)
}
}
Hello Uroš, unfortunately I can't get it to work yet. Not even if I set the timeout length to 10 seconds. The redirect works fine, but the registration is not saved.
The service is offered for free, with the service stating that the standard payment method in Amelia applies (because all payment options are disabled). The standard for Amelia is on-site. In Amelia I do have Mollie as a payment option for other paid services. Could the problem be related to that?
Can you provide us with the wp-admin credentials, the page where the form is located, and the redirect page URL (or where you added this script) so we can test it? Also, note that this redirect doesn't work for Mollie payments, as stated in the commented part.
To use Google Ads I would like to automatically link to the confirmation page after a service has been booked.
2 weeks ago Marko shared this code with someone:
https://tmsplugins.ticksy.com//ticket/3687837/
<script>
window.beforeConfirmedBooking = function()
{
window.location.href = "https://www.google.com";
};
</script>
I can't get this code to work. Maybe it only works for an event and not for a service. Then I found another ticket from someone with the same problem and Stefan shared the following code in it:
https://tmsplugins.ticksy.com//ticket/3634659/
<script>
window.ameliaActions = {
beforeBooking: function (success = null, error = null, data) {
//triggered when the "Confirm" button is clicked but before the booking is completed.
//This hook currently doesn't work for Mollie and WooCommerce payments
console.log('Before booking is created HOOK')
console.log(data)
console.log('------------')
window.location.href = "https://go.helmutberger.life/am-telefon-termine-dankesseite/";
},
}
The submitter of the question found that the redirect works with this code, but the registration of the login is not saved in Amelia. Stefan's answer to that problem is not publicly available. I tried to activate the script with a delay, but the result is that either the redirect works or the login is saved, but never both at the same time.
My question is: was Stefan able to share a solution or did he find that it does not work?
Hello Steven,
Thank you for reaching out to us.
I have passed this issue to our developers and we will provide you with an update as soon as we have one.
Thank you for your patience.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Steven,
Modification was just to delay redirect via setTimeout:
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Uroš, unfortunately I can't get it to work yet. Not even if I set the timeout length to 10 seconds. The redirect works fine, but the registration is not saved.
The service is offered for free, with the service stating that the standard payment method in Amelia applies (because all payment options are disabled). The standard for Amelia is on-site. In Amelia I do have Mollie as a payment option for other paid services. Could the problem be related to that?
Hello Steven,
I passed it back to our developers and will provide you with an update on it as soon as possible.
I appreciate your patience.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Steven,
Can you provide us with the wp-admin credentials, the page where the form is located, and the redirect page URL (or where you added this script) so we can test it? Also, note that this redirect doesn't work for Mollie payments, as stated in the commented part.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Uroš, You can log in here:
https://delferro.nl/wp-admin
Username:
tmsplugins
Password:
wFb%qvvzK7w5
The form where the redirect works, but the registration is not saved, can be found here:
https://stuttering-delferro.com/course-offering-stuttering/information-meeting-for-confirmation
This form is loading on the page:
Category 6 consists of 2 services. The services (an information session) are offered for 0 euros and therefore the payment settings are disabled:
And in settings the default payment method is on-site:
I also tested it without caching plugins. Hopefully you can point out what I did wrong. Thanks in advance for your response!
Hello Steven,
Thank you for that.
I have passed this issue to our developers and we will provide you with an update as soon as we have one.
Thank you for your patience.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Steven,
Can you point out where the code snippet is added? There is no booking form on this page: https://stuttering-delferro.com/course-offering-stuttering/information-meeting-for-confirmation
The code needs to be added where the booking form is.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I did indeed make a mistake. That was the link to the confirmation page. Apologies.
The link to the form and where the code is also located is:
https://stuttering-delferro.com/course-offering-stuttering/private-stutter-therapy/free-information-session
Hello Steven,
It should work now. We added the success()
callback function needed for this JavaScript to work. We apologize for missing this in the previous response.
You can test it and adjust the timeout to an optimal value.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables