Sends comments with the payment notifications (Closes #669).
authorStéphane Jacob <sj@m4x.org>
Tue, 7 Jul 2009 15:59:12 +0000 (17:59 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 7 Jul 2009 15:59:12 +0000 (17:59 +0200)
ChangeLog
modules/payment.php
templates/xnetevents/edit.tpl

index e51e981..be4b077 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,9 @@ Bug/Wish:
         - #963: Fixes notification email on removal of "nom d'usage"       -VZA
         - #972: Adds a legend on the email redirection page                -JAC
 
+    * Payment:
+        - #669: Sends comments with the payment notifications              -JAC
+
     * Profile:
         - #951: The address of a dead person is her last address           -JAC
         - #958: Fix the address in the professionnal vcard                 -JAC
index f54ce5b..8f1cd61 100644 (file)
@@ -226,6 +226,7 @@ class PaymentModule extends PLModule
         $conf_text = str_replace("<nom>",$nom,$conf_text);
         $conf_text = str_replace("<promo>",$promo,$conf_text);
         $conf_text = str_replace("<montant>",$montant,$conf_text);
+        $conf_text = str_replace("<comment>", Env::v('comment'), $conf_text);
         $conf_text = str_replace("<salutation>",$femme ? "Chère" : "Cher",$conf_text);
         $conf_text = str_replace("<cher>",$femme ? "Chère" : "Cher",$conf_text);
 
index f282b58..5670261 100644 (file)
@@ -163,9 +163,9 @@ function deadlineChange(box)
       <td colspan="2">
         Il faut que tu définisses le texte de l'email de confirmation de paiement. Pour ceci, tu peux adapter le modèle qui suit&nbsp;:
         <ul>
-          <li><strong>Remplace les crochets</strong> ([...]) par le texte que tu désires y voir apparaître</li>
-          <li>&lt;salutation&gt;, &lt;prenom&gt;, &lt;nom&gt; et &lt;montant&gt; seront <strong>automatiquement</strong> remplacés par les informations adaptées</li>
-          <li><a href="wiki_help" class="popup3">{icon name=information} tu peux utiliser une syntaxe wiki pour formatter ton texte</a></li>
+          <li><strong>Remplace les crochets</strong> ([...]) par le texte que tu désires y voir apparaître.</li>
+          <li>&lt;salutation&gt;, &lt;prenom&gt;, &lt;nom&gt;, &lt;montant&gt; et &lt;comment&gt; seront <strong>automatiquement</strong> remplacés par les informations adaptées.</li>
+          <li><a href="wiki_help" class="popup3">{icon name=information} Tu peux utiliser une syntaxe wiki pour formatter ton texte.</a></li>
         </ul>
         {javascript name=ajax}
         <div id="pay_preview" style="display: none">
@@ -176,7 +176,9 @@ function deadlineChange(box)
         </div>
         <textarea name="confirmation" id="payment_text" rows="12" cols="65">{if $paiement_message}{$paiement_message}{else}&lt;salutation&gt; &lt;prenom&gt; &lt;nom&gt;,
 
-Ton inscription à [METS LE NOM DE L'EVENEMENT ICI] a bien été enregistrée et ton paiement de &lt;montant&gt; a bien été reçu.
+Ton inscription à [METS LE NOM DE L'EVENEMENT ICI] a bien été enregistrée et ton paiement de &lt;montant&gt; a bien
+été reçu avec le commentaire suivant&nbsp;:
+&lt;comment&gt;
 
 [COMPLETE EN PRECISANT LA DATE ET LA PERSONNE A CONTACTER]