Okay
  Public Ticket #3088880
multi-week event notifications
Closed

Comments

  •  1
    Bettina started the conversation

    Hello,

    I have multi-week events scheduled (for example, 4 classes over 4 weeks). When I schedule the event reminders and event follow up, does it send them for each week or for the entire event? Ideally, I need a reminder only before the first class, and a follow up after each class AND after the entire event is over.

  •  1,339
    Marko replied

    Hello Bettina,

    Thank you for reaching out to us.

    Reminder notifications are sent via cron. Cron is not Amelias feature, this is a WordPress feature and it needs to be set in WordPress. If you cannot manage to set up cron you will need to contact your hosting provider.

    But in the before you do that we will try to help you as best as we can in case this doesn't work then you can contact your hosting provider.

    cron is a Linux utility that schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks like in our plugin for notifications.

    Depending on the server, there are different configurations for it, which you can contact your hosting provider about, or you can check out one of the solutions for it on this link.

    Also, you can try this:

    */15 * * * * wget -q -O - "https://www.yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send"

    Or this:

    */15 * * * * /usr/local/bin/php ~/public_html/wp-cron.php --action='wpamelia_api' --call='/notifications/scheduled/send'

    Or this:

    GET 'https://yourdomain.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send' > /dev/null

    WP Crontrol plugin is the best option if you're not familiar with cron jobs. You can find more info about it, and detailed instructions on how to set it up in our FAQ section.

    So, if you already read that, and still need some clarification here's some further info.

    You copy only the URL from below a scheduled notification:

    7810032183.png

    Then, go to Tools/Cron Events, and click on the "Cron Schedules" tab. In it, add a 15-minute interval:

    2487877415.png

    Then go back to the "Cron Events" tab and click on "Add new":

    9085918175.png

    Below it, select the "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:

    file_get_contents("yourURL");
    2095163400.png

    Below it add the name and set it to run a few minutes in the future, using the provided time format. So, if you're adding the cron event at 12:45 (local, current time), set it to run at 12:50; and then select the schedule you previously selected:

    7642938415.png

    Click on Add Event, and that's it.

    The cron runs every 15 minutes and checks if there's an email to be sent. So, in Amelia Notifications, your scheduled notifications are set to run every day at a certain time. If you set that time to be 15:00 (for example), the emails will be sent when the cron runs after that time.

    For example, there's an appointment booked for tomorrow, and it's currently 14:44 - the cron runs, but since it's not yet 15:00, it doesn't send anything. It runs again after 15 minutes, so at 14:59, but there are still no emails flagged by Amelia, so it doesn't send anything. Then it runs again at 15:14 and it sees there's an email that should've been sent at 15:00, so it sends the email. It will only send emails when Amelia sees an appointment scheduled for the next day.

    I hope that helps.

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •  1
    Bettina replied

    Hello,

    Thanks for your reply. However, I'm asking specifically about multi-day events. My classes run once a week for 4 weeks. Is it possible to send notifications only in relation to the first day of the event (send reminder before first class only), or also in relations to each day of the event (a reminder before each week before class, or a homework email after each class).

    Thanks!

    Bettina

  •  1,708
    Miloš replied

    Hi, Bettina 

    Sorry for the waiting time.

    Every recurring event is considered a separate event, and when a customer books one event, they are not automatically added to all recurring events,

    and also, for each recurring Event, the same notification template will be sent again.

    So , if you create a new Custom Notification, that would be tailored only for this recurring Event :

    3266688071.png

    If i make a recurring Event,  one day,   repeat every week -  then Amelia will treat it as repeating the same Event, and it will send the same notification again.

    -

    If you make a reminder,  any atendee that is going will receive reminder for each recurring Event,

    same goes for "follow up" notifications.

    They will be sent after every recurring Event.

    -

    I am sorry, but we are not able to only set a reminder for the "first recurring Event", since Amelia's logic is to treat them all as the exactly same Event, just repeating itself.

    You can check more details on Amelia logic for recurring Events here.


    I am also thinking, perhaps it will be useful to consider what will be best for your use-case scenario, to see the difference between multi-day Events, and recurring Events, please check this - Recurring VS multi-day events

    -

    Let me know if that makes sense, and if you have any questionssmile.png

    Thank you



    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •  1
    Bettina replied

    Hi Milos,

    I am using multi-day events, not recurring. I am wondering how Amelia sends out notifications for multi-day events, especially when it is a once a week class for 4 weeks.

    Thanks

  •  1,196
    Uroš replied

    Hello Bettina,

    As each date of the multi-day event is considered a separate event, the notification reminder will be sent out before each date of the event, and it cannot be limited to the first event only.

    You can suggest that feature on the following link: https://features.wpamelia.com/ 

    We carefully follow suggestions from our customers and the more vote the feature gets, the more priority we put on implementing that feature in one of the future updates.


    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •  1
    Bettina replied

    Hello,

    • I have tried all the solutions you provided, including the plugin WP Crontrol and none work. The WP Crontrol plugin keeps giving me a syntax error with the command you provided. 

     Line 1: syntax error, unexpected ':', expecting ')'

    The command I entered was copy and pasted from your instructions:

    file_get_contents(“https://trustevolved.dog/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send”);

    • I contacted my hosting provider to ask about their configurations, and they set it to 
    cd ${HOME}/public_html; /usr/local/bin/php -q wp-cron.php --action='wpamelia_api' --call='/notifications/scheduled/send'

    It still doesn't seem to be working. In their email they said:

    "We have now replaced the cronjob in such a way that the WordPress real Cronjob is set. When tested via CLI, it appears to be working as expected. You can confirm this by looking at the output below.

    ------------------------------------------------------------------------------------------

    sunnysi1@mi3-ss17 [~/public_html]# cd ${HOME}/public_html; /usr/local/bin/php -q wp-cron.php --action='wpamelia_api' --call='/notifications/scheduled/send'

    sunnysi1@mi3-ss17 [~/public_html]#

    ------------------------------------------------------------------------------------------

    However, if the Cron job does not generate any output after this change, you should contact the plugin vendor to determine why it is not working as expected, as a Cron job runs on the server side."

    Any other suggestions?



  •  1,708
    Miloš replied


    Hi, Bettina

    Please provide me a temporary WP-admin (administrator) user for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •   Bettina replied privately
  •   Miloš replied privately
  •   Miloš replied privately