I am sorry to disappoint you, but unfortunately, something like this is not possible with the plugin's built-in features.
Something similar can be achieved with the help of some plugin that has the possibility to use PHP Snippets and add shortcodes on the page in that way. For example:
1. There's the page (where you want the booking form to be), and when you're creating links that lead to that page, in URL you need to place the ID for the employee (http://somesite/booking?employee=17)
2. On that page (where you want the booking form to be), instead of our shortcode, you'd need to add the shortcode of that plugin which uses PHP Snippet which will generate our shortcode (https://wordpress.org/plugins/insert-php-code-snippet/).
thanks so much - that helps :-) but pls allow me one further question
How I can check if the employee has services assigned? Now I get it running but when an employee is selected without assigned services, I see the endless ajax loader from the ameliabooking.
That's expected behavior - if the employee is not assigned to a service, the form will load endlessly, because it has nothing to load, and it's trying.
Unfortunately, there's nothing I can do to prevent this.
Hi team,
I need a function like getAmeliaEmployeeID(wpUserID).
This is my plan:
Hello Ute
I am sorry to disappoint you, but unfortunately, something like this is not possible with the plugin's built-in features.
Something similar can be achieved with the help of some plugin that has the possibility to use PHP Snippets and add shortcodes on the page in that way. For example:
1. There's the page (where you want the booking form to be), and when you're creating links that lead to that page, in URL you need to place the ID for the employee (http://somesite/booking?employee=17)
2. On that page (where you want the booking form to be), instead of our shortcode, you'd need to add the shortcode of that plugin which uses PHP Snippet which will generate our shortcode (https://wordpress.org/plugins/insert-php-code-snippet/).
3. The snippet would look something like this:
I hope that helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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 Aleksandar,
thanks so much - that helps :-) but pls allow me one further question
How I can check if the employee has services assigned? Now I get it running but when an employee is selected without assigned services, I see the endless ajax loader from the ameliabooking.
Thanks in advance
Thomas
Hi again Thomas
That's expected behavior - if the employee is not assigned to a service, the form will load endlessly, because it has nothing to load, and it's trying.
Unfortunately, there's nothing I can do to prevent this.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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
Ok. Thanks Aleksandar!
You're welcome Ute, glad I could help.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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