Hey everyone!

With the Labour Day holidays coming up, we’d like to let you know about our upcoming working hours:

Thursday, May 1st: Our team will be off during Labour Day.
Friday, May 2nd: We'll also be off for an extended holiday break.

We’ll be back on Monday, May 5th, ready to respond to all messages received during this time.

In the meantime, if you need help, feel free to:

https://www.youtube.com/@AmeliaWordPressBookingPlugin/videos

https://www.youtube.com/@wpDataTables/videos

Thank you for being so understanding, and we hope you enjoy the long weekend! 

Okay
  Public Ticket #2798444
How to add line to cron?
Closed

Comments

  •  2
    Hannah Streek started the conversation

    Hi there, when setting up my event reminder notifications, I noticed the note where I need to add a line to my cron. How do I do that?

  • [deleted] replied

    Hi, Hannah,

    Thank you for choosing Amelia.

    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, if you’re not familiar with setting up crons, I would recommend to use the Crontrol plugin since it makes the process way easier. For that, please follow the steps below:

    Please install the WP Crontrol plugin on your WordPress.

    Copy only the URL from below a scheduled notification on Amelia -> Notifications page (don't copy this */15*** part, only the part that marked on the screenshot which is starting with http):

    rcUl0RkgORQpUDswVlcnJK8hEUJ59pv1FdYgy94-W656S6sSNbq2l6vV6C7ymxm_pEfhd0HMHB4yX_e-XzgpgyR90PCESIkq3boPFV6Wj7s7aKYdeem_v1gsuH_u7souEs7g7_Bj

    Open the Crontrol plugin on the WP Plugins page, that what you will see:

    Y4qoNAFMkOSRAbfhY_mhJKiPxxSxJ_fUnw9_EHWyUxyhDLueanQgdqhCjCEbz5FDKCpL5JrJErnuyKMK2n3W_1Bd5b3fhIKc8wmYMlJvKXB6cks86K-rg5I3NQATeibIfxCGE3MC

    Click on "Cron Schedules", enter the following details, and click on "Add Cron Schedule":

    mCrtRIH4vG-WAflM8u6Z18g2g10bNDt4bBhjdfTE6qU1YlZP7e8rnTh6uJpNYbAyPFD32eXXf3JPI5AAMgQ5O5BuM8RBLV9I4artn9fHWKc6qM2VSqqbb9edkrxNhpppp1WM8JcX

    Then go to "Cron Event" and add the URL you've copied from Amelia -> Notifications page to this:

    file_get_contents("your copied URL"); 

     

    Please don't miss any symbols, especially the ; in the end. So it will look like this:

    mGBYzNzm34zObWRrmCoKqAYVw2yBrOoNS5Gfy2w8dra7MB3KSLKW8ygHE3zDF9U6aBXBMkA7HW4ILy33IvHgkAUeY0Gm0n382nDDTWbzoz_N8X65KrX5qSxVE0XPAEWvSX6Fq0An

    Below it, add the name and set Next Run to your current time + 30 muns (for example, at 12.50):

    RJZEHyQVp3-rNyGLZylxw9yF1i6_67ShZOgWuGUycMM48jCJ4Be-Plv4NkJSDsWoemmybnWyXzwVGKHZZG7mqUrJwanAsB0TUgPbuwlDMgVJC7QK4m_8sBJJ9jFq81LkOP4RDJ1W

    Click on "Add Event".

    After that, you can open Amelia, book a test appointment for the next day, set the Next Day Reminder notification to a bit later time that you set Next Run for (in my example, it's 13:00), and see if you receive a Reminder notification in about 30 mins:

    dkzSi-jcfiWHKQxCU0WbmTW-RUAM95_W6dvFHjaS18kZdqlGoHmQRGyibYlPIoVuK6pQ9n8RULaBG2jVp7PNx09VTSrojWrq8Pe6qEYD3RQKCM5OFBgQTGC3gt_IuNVxNasFfnPr

     

    Hope that will help.

    Best Regards.