here a little patch to be able to send the cardalias through the signup module.
Rgds, Areski
Index: trunk/A2Billing_UI/signup/signup_confirmation.php
===================================================================
--- trunk/A2Billing_UI/signup/signup_confirmation.php (revision 293)
+++ trunk/A2Billing_UI/signup/signup_confirmation.php (working copy)
@@ -32,7 +32,7 @@
- $QUERY = "SELECT username, lastname, firstname, email, uipass, credit FROM cc_card WHERE username='".$_SESSION["cardnumber_signup"]."' ";
+ $QUERY = "SELECT username, lastname, firstname, email, uipass, credit, useralias FROM cc_card WHERE username='".$_SESSION["cardnumber_signup"]."' ";
$res = $DBHandle -> query($QUERY);
$num = $DBHandle -> num_rows();
@@ -50,15 +50,16 @@
$messagetext = $keepmessagetext;
- list($username, $lastname, $firstname, $email, $uipass, $credit) = $recordset;
+ list($username, $lastname, $firstname, $email, $uipass, $credit, $cardalias) = $recordset;
- if ($FG_DEBUG == 1) echo "
# $username, $lastname, $firstname, $email, $uipass, $credit #
";
+ if ($FG_DEBUG == 1) echo "
# $username, $lastname, $firstname, $email, $uipass, $credit, $cardalias #
";
$messagetext = str_replace('$name', $lastname, $messagetext);
//$message = str_replace('$username', $form->getValue('username'), $messagetext);
$messagetext = str_replace('$card_gen', $username, $messagetext);
$messagetext = str_replace('$password', $uipass, $messagetext);
+ $messagetext = str_replace('$cardalias', $cardalias, $messagetext);
/*
$mail = new phpmailer();
Index: trunk/A2Billing_UI/Public/frontoffice_data/CC_var_mailtemplate.inc
===================================================================
--- trunk/A2Billing_UI/Public/frontoffice_data/CC_var_mailtemplate.inc (revision 293)
+++ trunk/A2Billing_UI/Public/frontoffice_data/CC_var_mailtemplate.inc (working copy)
@@ -340,7 +340,7 @@
$FG_BUTTON_ADITION_SRC = "../Images/cormfirmboton.gif";
-$FG_BUTTON_ADITION_BOTTOM_TEXT = "Some \$tag will be automatically replaced from the mail template at the sending time. So you can define those tag inside the template text in order to adapt the mail to your needs. The replaceable tag are : \$name; \$card_gen; \$password ";
+$FG_BUTTON_ADITION_BOTTOM_TEXT = "Some \$tag will be automatically replaced from the mail template at the sending time. So you can define those tag inside the template text in order to adapt the mail to your needs. The replaceable tag are : \$name; \$card_gen; \$password ; \$cardalias ";
|