Auto reminder not working

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 4 months ago #21874 by Roger
Auto reminder not working was created by Roger
Hi there

I' struggling with the auto remind feature. Am I right, that a Cron job is not necessary any more?
I have a paid event with offline payment, can I use this feature with that?
The event is set to start at 2012-11-25 7:30 pm, when is the mail supposed to be send?

Thank you

Roger

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

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 4 months ago #21934 by Roger
Replied by Roger on topic Re: Auto reminder not working
Hi there

I managed to get a little further. Is there any possibility to make the auto reminder work for offline payments? My registrants pay on the first day of the event on site.

Regards

Roger

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

More
13 years 4 months ago #21938 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Auto reminder not working
Hi Roger

By default, the system only send Reminder emails to paid registrants. It doesn't send reminder emails to Pending Registrants (which choose offline payment method). You can try to edit the code alitle to make it works :

1. Open the file components/com_eventbooking/models/reminder.php

2. Find the code below :
Code:
$sql = 'SELECT a.id, a.first_name, a.last_name, a.email, a.register_date, a.transaction_id, b.id as event_id, b.title AS event_title, b.event_date ' .' FROM #__eb_registrants AS a INNER JOIN #__eb_events AS b ' .' ON a.event_id = b.id ' .' WHERE a.published=1 AND a.is_reminder_sent = 0 AND b.enable_auto_reminder=1 AND (DATEDIFF(b.event_date, NOW()) <= b.remind_before_x_days) AND (DATEDIFF(b.event_date, NOW()) >=0) ORDER BY b.event_date, a.register_date ' .' LIMIT '.$numberEmailSendEachTime ;


3. Change it to :
Code:
$sql = 'SELECT a.id, a.first_name, a.last_name, a.email, a.register_date, a.transaction_id, b.id as event_id, b.title AS event_title, b.event_date ' .' FROM #__eb_registrants AS a INNER JOIN #__eb_events AS b ' .' ON a.event_id = b.id ' .' WHERE (a.published=1 OR a.payment_method="os_offline") AND a.is_reminder_sent = 0 AND b.enable_auto_reminder=1 AND (DATEDIFF(b.event_date, NOW()) <= b.remind_before_x_days) AND (DATEDIFF(b.event_date, NOW()) >=0) ORDER BY b.event_date, a.register_date ' .' LIMIT '.$numberEmailSendEachTime ;


After that, it should work as expected .

Tuan

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

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 10 months ago #62724 by Roger
Replied by Roger on topic Re: Auto reminder not working
Hi Tuan

I finally managed to get all the other stuff ready so that I can no upgrade the Event Booking. I'm sure you remember the problem of this thread. Up to now this has been working great. My page is on 1.6.3 and I'm getting ready to move to 1.7.2. In 1.6.3. I entered the following code into the reminder.php file

In version 1.6.3. I made the following changes to reminder.php
Code:
$sql = 'SELECT a.id, a.first_name, a.last_name, a.email, a.register_date, a.transaction_id, a.language, b.id as event_id, b.title AS event_title, b.event_date ' .' FROM #__eb_registrants AS a INNER JOIN #__eb_events AS b '.' ON a.event_id = b.id ' .' WHERE (a.published=1 OR a.payment_method="os_offline") AND a.is_reminder_sent = 0 AND b.enable_auto_reminder=1 AND (DATEDIFF(b.event_date, NOW()) <= b.remind_before_x_days) AND (DATEDIFF(b.event_date, NOW()) >=0) ORDER BY b.event_date, a.register_date ' .' LIMIT '.$numberEmailSendEachTime

Now I just saw that the code in 1.7.2. has changed again. Would you be so kind to adjust the code above, so that it would also work in 1.7.2?

Thanks a lot

Roger

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

More
10 years 10 months ago #62747 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Auto reminder not working
Hi Roger

You can use that code above and it will still work in 1.7.2

Tuan

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

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 6 months ago #69041 by Roger
Replied by Roger on topic Re: Auto reminder not working
Hi Tuan

Having problems with the auto reminder function again. Upgraded my test system yesterday, wanted to upgrade production today. Since the auto reminder feature is very important for me, I was looking for the reminder.php file under the path components/com_eventbooking/models/reminder.php

I was surprised that the models folder is not there anymore. Was searching for a reminder.php file without success. Could you please tell me what to do in order to send reminder mails to registrants of paid events who pay during the event itself and not in advance.

As written in another thread for me it would be fantastic if there would be a configuration item in event booking where it would be possible to select if there are reminder mails or not. No matter whether paid or not.

Thanks

Roger

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

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 6 months ago #69104 by Roger
Replied by Roger on topic Re: Auto reminder not working
Hi Tuan

Have you had the time to have a look at it yet?

Thanks

Roger

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

More
10 years 6 months ago #69118 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Auto reminder not working
Hi Roger

The reminder feature does works and I made some improvements to it recently. You can download latest version from My Downloads section, upgrade to your site.

Then find and change setting of the reminder plugin. It has an option to allow you to add a BCC email so that each time reminder is sent, a copy of that reminder email will be sent to you as well so that you can keep track and monitor it

Regards,

Tuan

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

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 6 months ago #69126 by Roger
Replied by Roger on topic Re: Auto reminder not working
Hi Tuan

Thanks, I saw the BCC Feature that's great. Thank you for your great work.
Up to now you helped me to change the code, so that reminder mails are sent also to pending (non paying) participants. See code above. Can I still do that somehow? Do I need to change the code for that? If yes where?

Thanks

Roger

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

Moderators: Tuan Pham Ngoc