Sending attachment when registrant is confirmed

  • Rasmus Larsen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #49294 by Rasmus Larsen
Hi there!

Is it possible for me to change the code, so that the attachments gets sent to the registrant when the registration is confirmed?

For example, if a user registers using offline payment, the registrations is set as "Pending", and I wouldn't like the user to get the attachments, before I have checked that the bank transfer is complete.

Thanks

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 6 months ago #49306 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Sending attachment when registrant is confirmed
Hi Rasmus

Yes. You can. However, you will need to know how to modify code in Events Booking to do that. Basically, the idea is that :

1. Edit the function sendEmails function in EventbookingHelper class (components/com_eventbooking/helper/helper.php) so that if users choose offline payment for their registration, attachment won't be sent.

2. Edit the function sendRegistrationApprovedEmail in the same file to send the attachment to the registrant.

Hope it gives you some helps

Tuan
The following user(s) said Thank You: Rasmus Larsen

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

  • Rasmus Larsen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #49316 by Rasmus Larsen
Replied by Rasmus Larsen on topic Sending attachment when registrant is confirmed
Awesome, that did the trick! Thanks!

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 6 months ago #49320 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Sending attachment when registrant is confirmed
I'm glad it helps :)

Tuan

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

Moderators: Tuan Pham Ngoc