Are there more triggered events?

  • Donal
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 6 months ago #117933 by Donal
Are there more triggered events? was created by Donal
I've read the docs at eventbookingdoc.joomservices.com/develop...mentation/dev-plugin and I was just wondering if there are more events than those listed?

Ideally, I'd want OnAfterRegistrantEdit and OnAfterRegistrantCancel in order to write a plugin to more tightly integrate my other systems, but other events like OnNewEvent (althought this may be covered with onAfterSaveEvent) would be nice.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #117934 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Are there more triggered events?
Hello

1. We don't support OnAfterRegistrantEdit event trigger at the moment. Will consider supporting it in the future

2. We have onRegistrationCancel event, guess, it's the same with what you requested OnAfterRegistrantCancel

3. onAfterSaveEvent can be used for OnNewEvent . Just check $isNew parameter on onAfterSaveEvent , if it's true, then it's a new event

Tuan

Please Log in or Create an account to join the conversation.

  • Donal
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 6 months ago #117938 by Donal
Replied by Donal on topic Are there more triggered events?
Great.

And what about events for
1) Completion payment made - final payment after place originally booked with deposit.
2) Event finished - this is triggered when an event end date and time passes? Would like to use this for sending post-event emails, like feedback request.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #117940 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Are there more triggered events?
Hello

1. There is a trigger already, it's onDepositPaymentSuccess

2. No, we don't support that trigger. It's honestly, hard to trigger it because it needs cron job. For sending emails, you can use reminder emails feature supported by the extension already

Tuan

Please Log in or Create an account to join the conversation.

  • Donal
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 6 months ago #117951 by Donal
Replied by Donal on topic Are there more triggered events?
Thanks

1) I am a bit confused with terminology used.

Am I correct in saying that
a) onAfterPaymentSuccess is triggered when initial payment is succesfully made, whether full payment or initial deposit
b) onDepositPaymentSuccess is triggered when the completion payment is made?

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #117953 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Are there more triggered events?
Hi

What you said is correct.

Tuan

Please Log in or Create an account to join the conversation.

  • Donal
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 5 months ago #118237 by Donal
Replied by Donal on topic Are there more triggered events?

Tuan Pham Ngoc wrote: 3. onAfterSaveEvent can be used for OnNewEvent . Just check $isNew parameter on onAfterSaveEvent , if it's true, then it's a new event

Tuan

Is OnAfterSaveEvent triggered when a new event is created by importing a spreadsheet?

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #118242 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Are there more triggered events?
Hi Donal

No, we don't trigger that event on import. If you want to trigger the event, you can modify the code yourself. Look at the file administrator/components/com_eventbooking/model/event.php, add a command inside for loop block (before $imported++):
Code:
JFactory::getApplication()->triggerEvent('onAfterSaveEvent', [$row, $event, true]);

Hope it helps

Tuan

Please Log in or Create an account to join the conversation.

  • Donal
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 5 months ago #118313 by Donal
Replied by Donal on topic Are there more triggered events?

Tuan Pham Ngoc wrote: Hello

1. We don't support OnAfterRegistrantEdit event trigger at the moment. Will consider supporting it in the future


Thanks Tuan. Can you point to the file we would need to modify to include this event?

Regards,
Donal

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #118317 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Are there more triggered events?
Hi Donal

The file is administrator/components/com_eventbooking/model/common/registrant.php, method store

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc