Hi, I would like to ask, by doing the below web hook, is it possible to pass email placeholders such as %customer_full_name%, %service_name% to the redirect url?
web hook:
<script>
window.ameliaActions = { beforeBooking: function (success = null, error = null, data) { console.log('Before booking is created HOOK'); let parsedServiceSettings = JSON.parse(data.service.settings); parsedServiceSettings.general.redirectUrlAfterAppointment += "?utm_source=example"; data.service.settings = JSON.stringify(parsedServiceSettings); success(); }
}
</script>
We just got the feedback from our colleagues and they have told us that you can't utilize placeholders in this context. Perhaps you can accomplish this by considering the following approach:
I'm afraid that we didn't quite get what you are asking us? My colleagues sent us possible solutions that you should try. Did you tried what they have suggested? If you did not please try this out and let us know how it goes.
I tried before but it didn't work, attached the JS on the page, it just added "${data.service.name}" behind the redirect url. What I got after booked an appointment is example.com/?service=%24%7Bdata.service.name%7D
It has not turned the data to the real actual appointment data.
Thanks. Michael
@Frankie, I think you will need to add the javascript on the page like what's in the image that displaying the booking form. But their JS is not working as expected.
Hi, I would like to ask, by doing the below web hook, is it possible to pass email placeholders such as %customer_full_name%, %service_name% to the redirect url?
web hook:
Regards,
Michael
Attached files: 1088633404.png
Hello Michael,
We have forwarded your ticket to our level 2 agents and as soon as we get some feedback from them we will contact you immediately.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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 Michael,
We just got the feedback from our colleagues and they have told us that you can't utilize placeholders in this context. Perhaps you can accomplish this by considering the following approach:
parsedServiceSettings.general.redirectUrlAfterAppointment +=
`?utm_source=example&customer=${data.booking.customer.firstName + " " + data.booking.customer.lastName}&service=${data.service.name}`;
Hope this helps.
Should you have any further inquiries, we kindly request that you open separate tickets for each question and we will gladly help you there.
We wish you all the best.
Have a nice day.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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
did it work? how did you guys do it?
Hello Michael,
I'm afraid that we didn't quite get what you are asking us? My colleagues sent us possible solutions that you should try. Did you tried what they have suggested? If you did not please try this out and let us know how it goes.
Looking forward to your reply.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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
hi thanks for replying. main question is, how and where to run those JS codes?
Hello Michael,
We have forwarded your ticket to our level 2 agents again to check just in case and as soon as we get some feedback from them we will contact you.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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 Michael,,
We just got the feedback from our colleagues and they have told us that you should replace your code in a hook that you have sent us.
just instead of:
parsedServiceSettings.general.redirectUrlAfterAppointment += "?utm_source=example";
you should set:
parsedServiceSettings.general.redirectUrlAfterAppointment += `?utm_source=example&customer=${data.booking.customer.firstName + " " + data.booking.customer.lastName}&service=${data.service.name}`;
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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
Hi Marko,
I tried before but it didn't work, attached the JS on the page, it just added "${data.service.name}" behind the redirect url. What I got after booked an appointment is example.com/?service=%24%7Bdata.service.name%7D
It has not turned the data to the real actual appointment data.
Thanks.
Michael
@Frankie, I think you will need to add the javascript on the page like what's in the image that displaying the booking form. But their JS is not working as expected.
Attached files: AMELIA1.JPG
Hello Michael,,
We will forward this to our developers so that they can take a look.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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 Michael,
We just got the feedback from our colleagues and they have told us this
To use string interpolation (${expression}) you must embed it in backquotes (`), not double quotes ("). If you use a double quote the string will just be printed out. Check out this documentation https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
Hope this helps.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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