Unica email per piu prenotazioni

Discussioni su come configurare hoteldruid ed utilizzare al meglio le sue funzionalità.

Moderator: marco

Post Reply
Prokophs
Posts: 9
Joined: Thu Apr 19, 2012 4:21 pm

Unica email per piu prenotazioni

Post by Prokophs »

Ciao Marco,

Vorrei sapere se è possibile fare il seguente e se sì come.
Cioè mandare una unica email di conferma prenotazione per un unico cliente che ha prenotato più camere.
Esempio:

Rossi Mario - Starting Date - Ending Date - Rate 1 (studio 2 adulti) - Comment - Total
Rossi Mario - Starting Date - Ending Date - Rate 2 (studio 3 adulti) - Comment - Total
Rossi Mario - Starting Date - Ending Date - Rate 3 (appartamento 4 adulti) - Comment - Total

Per ogni prenotazione il nome e cognome rimane lo stesso come rimane lo stesso il comment ( che uso come numero di prenotazione).

Di default Hoteldruid manda un email di conferma per ogni singola prenotazione e quindi nell'esempio sopra manderebbe 3 diverse email.
Quindi mi chiedo se si potrebbe inviare un unica email con tutte le informazioni sopra.

Ecco il mio codice dell'email di conferma.

Code: Select all

<!-- Email Container : BEGIN -->
  <!-- This table wraps the whole body email within it's width (600px), sets the background color (white) and border (thin, gray, solid) -->
    <table border="0" width="600" cellpadding="0" cellspacing="0" align="center" style="background: #ffffff; border: 1px solid #e5e5e5;" class="email-container">
      
      <!-- Guest Name, Thank You Message : BEGIN -->
      <tr>
        <td>
          <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
            <tr>
              <td style="padding: 30px 30px 0px 30px; font-family: sans-serif; font-size: 17px; line-height: 22px; color: #656565;">
                Dear Ms/Mr [surname],
              </td>
            </tr>
            <tr>
              <td style="padding: 30px 30px 0px 30px; font-family: sans-serif; font-size: 14px; line-height: 22px; color: #656565;">
                Thank you for choosing to spend your holidays with us.<br>We would like to inform you that your reservation is confirmed as follows.
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <!-- Guest Name, Thank You Message : END -->
      
      <!-- Reservation Number : BEGIN -->
      <tr>
        <td>
          <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
            <tr>
              <td style="padding: 20px 30px; font-family: sans-serif; font-size: 17px; line-height: 22px; color: #656565;">
                Reservation N° <strong>[comment]</strong>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <!-- Reservation Number : END -->
        
      <!-- Reservation Details : BEGIN -->
      <tr>
        <td style="padding: 10px 30px 20px 30px;">
          <table border="0" cellpadding="0" cellspacing="0" class="columns-container" style="box-sizing: border-box; font-size: 14px; margin: 0; padding: 0; width: 100% !important;">
            <tr style="box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
                 <!--
                 --
                 BEGIN CHECK IN DETAILS
                 -->
                 <td style="font-family: sans-serif; color: #656565; border-top: #eee 1px solid; box-sizing: border-box; font-size: 14px; margin: 0; padding: 5px 0; vertical-align: top;">
                  Check-in
                 </td>
                 <td class="alignright" style="font-family: sans-serif; color: #656565; border-top: #eee 1px solid; font-family: sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 5px 0; text-align: right; vertical-align: top;">
                  [starting_date]
                 </td>
                 <!--
                 END CHECK IN DETAILS
                 --
                 -->
                </tr>
                <tr style="box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
                 <!--
                 --
                 BEGIN CHECK OUT DETAILS
                 -->
                 <td style="font-family: sans-serif; color: #656565; border-top: #eee 1px solid; box-sizing: border-box; font-size: 14px; margin: 0; padding: 5px 0; vertical-align: top;">
                  Check-out
                 </td>
                 <td class="alignright" style="font-family: sans-serif; color: #656565; border-top: #eee 1px solid; box-sizing: border-box; font-size: 14px; margin: 0; padding: 5px 0; text-align: right; vertical-align: top;">
                  [ending_date]
                 </td>
                 <!--
                 END CHECK OUT DETAILS
                 --
                 -->
                </tr>
                <tr style="box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
                 <!--
                 --
                 BEGIN ROOMS DETAILS
                 -->
                 <td style="font-family: sans-serif; color: #656565; border-top: #eee 1px solid; box-sizing: border-box; font-size: 14px; margin: 0; padding: 5px 0; vertical-align: top;">
                  Rooms
                 </td>
                 <td class="alignright" style="font-family: sans-serif; color: #656565; border-top: #eee 1px solid; box-sizing: border-box; font-size: 14px; margin: 0; padding: 5px 0; text-align: right; vertical-align: top;">
                  [rate_name]
                 </td>
                 <!--
                 END ROOMS DETAILS
                 --
                 -->
                </tr>
                <tr style="box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
                 <!--
                 --
                 BEGIN GUESTS DETAILS
                 -->
                 <td style="font-family: sans-serif; color: #656565; border-top: #eee 1px solid; border-bottom: #eee 1px solid; box-sizing: border-box; font-size: 14px; margin: 0; padding: 5px 0; vertical-align: top;">
                  Guests
                 </td>
                 <td class="alignright" style="font-family: sans-serif; color: #656565; border-top: #eee 1px solid; border-bottom: #eee 1px solid; box-sizing: border-box; font-size: 14px; margin: 0; padding: 5px 0; text-align: right; vertical-align: top;">
                  [people_num_tot]
                 </td>
                 <!--
                 END GUESTS DETAILS
                 --
                 -->
                </tr>
                <tr class="total" style="box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
                  <!--
                  BEGIN TOTAL DETAILS
                  --
                  -->
                  <td class="alignright" style="font-family: sans-serif; color: #656565; border-bottom: 2px solid #333; border-top: 2px solid #656565; box-sizing: border-box; font-size: 14px; font-weight: 700; margin: 0; padding: 5px 0; text-align: right; vertical-align: top;" width="80%">
                    Total
                  </td>
                  <td class="alignright" style="font-family: sans-serif; color: #656565; border-bottom: 2px solid #333; border-top: 2px solid #656565; box-sizing: border-box; font-size: 14px; font-weight: 700; margin: 0; padding: 5px 0; text-align: right; vertical-align: top;">
                    [price_tot]
                  </td>
                  <!--
                  END TOTAL DETAILS
                  --
                  -->
                </tr>
          </table>
        </td>
      </tr>
      <!-- Reservation Details : END -->
Grazie in anticipo.
Prokophs
Posts: 9
Joined: Thu Apr 19, 2012 4:21 pm

Re: Unica email per piu prenotazioni

Post by Prokophs »

Nessuno sa come si fa?
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: Unica email per piu prenotazioni

Post by marco »

Ciao,
se nel testo del documento compare almeno una volta una ripetizione di prenotazioni [r]...[/r] allora verra generata un'unica email per tutte le prenotazioni selezionate. Naturalmente solo le parti che si trovano all'interno di [r]...[/r] verranno ripetute per ogni prenotazione.

Saluti,
Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply