• Hello Five Star Team,

    is there any way to avoid “empty” Daily Summary mails? Gladly a solution in code.
    The emails are sent even if there are no bookings for this day. They only include the introductory sentence, as well as the column titles.

    Update:
    I just got the objection from my colleague that then you can never be sure if there were no bookings or if the mail was eaten somewhere.

    Best solution: alternative information in the email describing that there are no bookings for that day.

    Thanks, Thomas

    • This topic was modified 2 years, 10 months ago by hofercraft.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hofercraft

    (@hofercraft)

    update: already fixed by adding to Notifications.class.php after ob_start(); ..

     if(empty($bookings)) echo "There are currently no bookings for today."
    
    

    if(!empty($bookings)) { … old stuff }

    • This reply was modified 2 years, 10 months ago by hofercraft.
    Thread Starter hofercraft

    (@hofercraft)

    update 2:

    while testing my solution, I can say it works so far but found some bug:

    the language of the summary mail random differs from mail to mail..
    sometimes in use: language from logged in admin
    other times in use: language from frontend is in use

    There should be some fixed setting to make sure in what language the admin user receives this summary email ??

    Plugin Support jaysupport

    (@jaysupport)

    Hi hofercraft,

    We did have a similar request not too long ago (perhaps also from you, but I don’t recall) to specify the language of the summary, to help for situations exactly like the one you just described here. As such, we’ve already got this noted down, and can hopefully look into implementing it in a future update.

    Thank you also for sharing your workaround. Perhaps, in the meantime, this can assist someone else who has a similar setup.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Empty day summary emails’ is closed to new replies.