• Resolved coe2013

    (@coe2013)


    We were wondering why the user does not get a mail when a booking is rejected, so we had a look in the code…
    It seems like there is no “rejected” mail template, only one for “deleted”, although in the backend it says “Benachrichtigen, wenn die Reservierung abgelehnt wurde” => rejected

    So for all who are wondering: if you click “reject” in the backend, not mail will be send.
    If you approve and then delete => mail will be send.
    Of course, makes no sense, but seems like the code is wrong in this case…

    probably, it should be:

    if($update_res) {
    if($res_status[“status”] == “approved”) {
    $this->change_date_avail_count( $id, false );
    }
    $send_mail = $this->send_mail($id,”rejected”);
    => change to
    $send_mail = $this->send_mail($id,”canceled”);

    • This topic was modified 8 months, 3 weeks ago by coe2013.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdevart

    (@wpdevart)

    Hi @coe2013.

    On the Notifications page, scroll down and find this option “Notify when reservation is deleted (rejected)”. If you enable this option, users will be notified when a reservation is deleted or rejected.

    We tested this option again and it works on our end.

    Thanks.

    Thread Starter coe2013

    (@coe2013)

    yes, the last option is “notify on deleted” – but in German you say “Benachrichtigen, wenn die Reservierung abgelehnt wurde” => that means if rejected.

    So if I only reject a booking, but do not delete, no mail is end on our end.
    If we change the code above (thus $send_mail = $this->send_mail($id,”canceled”); in the reject method) – the mail is send when we REJECT a booking without deleting.

    Plugin Author wpdevart

    (@wpdevart)

    Hi @coe2013.

    Since everything is working fine on our side, we will not update the global version. But if others experience this problem, we will update the plugin.

    Thanks again and have a nice day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug: mail only on deleted, notrejected’ is closed to new replies.