• I really like WP Hotelier and am considering it for a new client project. The only thing keeping me from using it right now is the lack of SMS notifications.

    So, I’ve been sniffing around the git repo and contemplating my own solutions to trigger SMS notifications to be sent to guests. And am guessing this is the best place to start by hooking into the 'hotelier_reservation_status_' changes, similar to how it’s done here in includes/emails/class-htl-email-guest-confirmed-reservation.php#L38C1-L41C1 :

        add_action( 'hotelier_reservation_status_pending_to_confirmed_notification', array( $this, 'trigger' ) );
        add_action( 'hotelier_reservation_status_failed_to_confirmed_notification', array( $this, 'trigger' ) );
        add_action( 'hotelier_reservation_status_on-hold_to_confirmed_notification', array( $this, 'trigger' ) );

    This is still very premature. So far, I’ve only played a little with Twilio’s boilerplate WP plugin. For now I’m just curious:

    • Does this seem like I’m on the right track? or do you have other insight I should consider?
    • Any possibility that WP Hotelier would offer it’s own SMS add-on in the near future?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author benitolopez

    (@benitolopez)

    Yes, that’s correct. Use the files in the “emails” folder to check how the plugin triggers the emails.

    That specific email (HTL_Email_Confirmed_Reservation) is sent when a reservation changes its status to confirmed. So be aware of what it means. If your “Booking mode” is set to “Instant” then yes, this is the correct example.

    Regarding the integration, I have never honestly thought about it. It is definitely a good idea and I will keep it in mind. But it will take a while (if I make it) so I’m afraid you will have to continue with a custom solution on your own.

    Best

Viewing 1 replies (of 1 total)
  • The topic ‘Advice on SMS Integration’ is closed to new replies.