Okay
  Public Ticket #3739856
Notification
Closed

Comments

  • Kharisma started the conversation

    Hi there,

    Thank you for your help last time. Hope you don't mind me asking 2 questions as below:

    1. I'm currently, using 2 languages for the booking system (French & English). However, for my clients they only receive the French one everytime they make a booking, even though they submit them via English for example. Do you know how to fix this ? 

    2. Do you know also how to configure daily reminder notification for the client ? Or some kind of reminder 1 day before from Amelia to the client ?

    Thank you for your help so far Marko. Please kind help me out for these solutions. Looking forward for your reply.

    Best,
    Kharisma

  •  1,499
    Uroš replied

    Hello,

    Thank you for reaching out to us.

    1. Notification templates are not included in the translations, so when you access Amelia/Notifications, all templates will be in English. However, if your site is set to German (for example), the de_DE locale will be applied, and Amelia will use the templates you see in Amelia/Notifications, so if you don't translate these, all email notifications will be sent in English.

      In cases like this, DO NOT add your language as a secondary language in Amelia. It is the primary language of your website, and Amelia will use it as a primary language.

      Since your site is configured to your language in WordPress General Settings (German in this example), you only need to translate the templates you see when you land in Amelia/Notifications. The language drop-down you see in the top right is used only for additional languages (so, if the site is in German, you will add English, Spanish, Dutch, etc) through this menu:

      3109574757.png

      So, if you have issues with emails coming in in English, instead of the language your WordPress site is set to, make sure you haven't added your language as the additional language, and translate the templates you see when you land in Amelia/Notifications.

    2. For this purpose, you will have to set up a cronjob. 

      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, 

    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

  • Kharisma replied

    Hello Uros, 

    Thank you for your getting back to me again. For the cronjob i will look and find out soon. 

    However, regarding the notifications. Here i attached proof that i have already setup two email notifications (French & English) both for customer and myself. But still, for my clients they only receive the French one everytime they make a booking (even though they submit them via English). I was wondering if you could fix this issue maybe by doing a teamviewer or something ? That'd be much appreciated 

    Looking forward to hear back from you.

    Thank you,

    Kharisma

    Attached files:  Screen Shot 2024-10-28 at 11.57.06 AM.png
      Screen Shot 2024-10-28 at 11.57.14 AM.png
      Screen Shot 2024-10-28 at 11.56.58 AM.png
      Screen Shot 2024-10-28 at 11.56.53 AM.png

  •  1,499
    Uroš replied

    Hello Kharisma,

    Thank you for the update on this.

    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, 

    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