- Posts: 41
- Thank you received: 0
Execute custom script after registration
- Markus Schwendtner
- Topic Author
- Offline
- Senior Member
Less
More
9 years 1 month ago #59985
by Markus Schwendtner
Execute custom script after registration was created by Markus Schwendtner
Hi Tuan,
in the event registration tool (chronoforms) I used before your GREAT PIECE OF SOFTWARE (!!!) I had the opportunity to execute some custom code after the customer pressed "send" - in this case, add the email address to my mailing list software.
Is there any possibility to execute something like that automatically (I am using Acymailing). The code I used to execute is
(attachment)
Any idea where I could include that ?
Cheers,
Markus
in the event registration tool (chronoforms) I used before your GREAT PIECE OF SOFTWARE (!!!) I had the opportunity to execute some custom code after the customer pressed "send" - in this case, add the email address to my mailing list software.
Is there any possibility to execute something like that automatically (I am using Acymailing). The code I used to execute is
(attachment)
Any idea where I could include that ?
Cheers,
Markus
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
9 years 1 month ago #59991
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Execute custom script after registration
Hi Markus
The only way is writing a plugin for Events Booking to run the code when the registration is saved (the plugin will process onAfterStoreRegistrant event and call the code).
There are many plugins come with Events Booking which process that event (you can see these plugins in plugins/eventbooking folder of your site). So maybe you can take one of them, rename it, modify code to run the code you want and install it to your site...) to have it working
It would be easy if you (or your dev) know how to develop a Joomla plugin
Regards,
Tuan
The only way is writing a plugin for Events Booking to run the code when the registration is saved (the plugin will process onAfterStoreRegistrant event and call the code).
There are many plugins come with Events Booking which process that event (you can see these plugins in plugins/eventbooking folder of your site). So maybe you can take one of them, rename it, modify code to run the code you want and install it to your site...) to have it working
It would be easy if you (or your dev) know how to develop a Joomla plugin
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Markus Schwendtner
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 0
9 years 1 month ago #60025
by Markus Schwendtner
Replied by Markus Schwendtner on topic Execute custom script after registration
Hi Tuan,
thanks for the hint, I will have a look at the plugins and see if I can use it to add the code.
Can you give me a hint which plugins are executed after pressing the registration (or waiting list) button ? Ideally I think it should go where the confirmation email is sent to the administrator - that always happens and would be the single point to have it
Cheers,
Markus
thanks for the hint, I will have a look at the plugins and see if I can use it to add the code.
Can you give me a hint which plugins are executed after pressing the registration (or waiting list) button ? Ideally I think it should go where the confirmation email is sent to the administrator - that always happens and would be the single point to have it
Cheers,
Markus
Please Log in or Create an account to join the conversation.
- Markus Schwendtner
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 0
9 years 1 month ago #60030
by Markus Schwendtner
Replied by Markus Schwendtner on topic Execute custom script after registration
Actually I saw that there is a acymailing plugin - what is that doing ?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
9 years 1 month ago #60032
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Execute custom script after registration
That plugin will be used to assign registrants of an event into the ACY Mailing lists you want (you can select the lists you want for each event)
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
9 years 1 month ago #60037
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Execute custom script after registration
I also write a sample plugin which can be used to add the code you want to execute into it. You can:
1. Get the plugin here
2. Edit the file code.php, add the code you want to execute into the method onAfterStoreRegistrant
3. Then zip the plugin. Go to Extensions -> Plugins Manager , install and publish it
4. Then each time registrant register for your event, the code which you wrote will be executed
That's all I can help, I am afraid of .
Tuan
1. Get the plugin here
2. Edit the file code.php, add the code you want to execute into the method onAfterStoreRegistrant
3. Then zip the plugin. Go to Extensions -> Plugins Manager , install and publish it
4. Then each time registrant register for your event, the code which you wrote will be executed
That's all I can help, I am afraid of .
Tuan
Please Log in or Create an account to join the conversation.
- Markus Schwendtner
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 0
9 years 1 month ago #60047
by Markus Schwendtner
Replied by Markus Schwendtner on topic Execute custom script after registration
Hi Tuan,
thats actually exactly what I need - to add everyone who registers for an event to an acymailing list (or rather two lists...)
I can activate the plugin, but where do I select the mailing list(s) I want to add participants to ?
All the best,
Markus
thats actually exactly what I need - to add everyone who registers for an event to an acymailing list (or rather two lists...)
I can activate the plugin, but where do I select the mailing list(s) I want to add participants to ?
All the best,
Markus
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
9 years 1 month ago #60061
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Execute custom script after registration
Hi Markus
Publish the plugin. Then edit the event, you will see a new tab allow you to select the ACYMailing lists you want. Then when someone registers for that event, he will be assigned to that lists
Regards,
Tuan
Publish the plugin. Then edit the event, you will see a new tab allow you to select the ACYMailing lists you want. Then when someone registers for that event, he will be assigned to that lists
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.