Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Credit card number in admin email

Credit card number in admin email 14 years 8 months ago #7252

  • spamis
  • spamis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I do not register enough people for events to make using Authorize.net feasible so I just do the credit card authorization by hand. The way I'm set up, the user enters his credit card information in custom fields and that info is stored in the database. Unfortunately, the email that is sent to me confirming the registration contains all of the registrant's information including the credit card number. Which template or form can I access (if any) and what change would I have to make to remove that information from the admin confirmation email? I want to know that they have signed up but the credit card information is in the database so I don't need it in the email. Thanks.

Please Log in or Create an account to join the conversation.

Credit card number in admin email 14 years 8 months ago #7259

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
You'd have to modify this file:
/components/com_dtregister/common.php

Search for this:
$adminmsg.= JText::_('DT_ADMIN_MSG_DETAILS') . ":<br><br>";

A few lines later you'll see a <table> start followed by all of the data being pulled into that admin notification email. After the default fields are pulled in, you'll see this:

if ($arrCustomFields){

This line starts the code for displaying the custom field data in that email. Edit / comment as needed for your use. Thanks.

Please Log in or Create an account to join the conversation.

Credit card number in admin email 14 years 8 months ago #7269

  • greyson72
  • greyson72's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
is there a way to change this only for the email that gets sent to the registrant, and not for the admin? meaning I would still like the admin to receive the cc info via email...

Please Log in or Create an account to join the conversation.

Credit card number in admin email 14 years 8 months ago #7273

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
You have full control over what is included in the user confirmation email. That is done in the Configuration area of DT Register. There is a tag for including all custom fields, or you can use a tag to include only specific custom fields. Or, of course, you can choose to not include any of the custom field tags. Further instructions and examples can be seen in the video tutorials.

Please Log in or Create an account to join the conversation.

Credit card number in admin email 14 years 8 months ago #7291

  • spamis
  • spamis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

dthadmin wrote: You'd have to modify this file:
/components/com_dtregister/common.php

Search for this:
$adminmsg.= JText::_('DT_ADMIN_MSG_DETAILS') . ":<br><br>";

A few lines later you'll see a <table> start followed by all of the data being pulled into that admin notification email. After the default fields are pulled in, you'll see this:

if ($arrCustomFields){

This line starts the code for displaying the custom field data in that email. Edit / comment as needed for your use. Thanks.


Thanks for the advise but I need some clarification if possible. I opened the common.php file as directed and it only had 6 lines of code none of which was at all similar to what you described above. I opened the file dtregister.php which had code similar to what you referred to but I could not find $adminmsg.= JText::_('DT_ADMIN_MSG_DETAILS') . ":<br><br>";. I did find 6 instances of if ($arrCustomFields){ in a <table> but no specific reference to credit card information. Is this even the correct file or should I look someplace else? Please advise.

Please Log in or Create an account to join the conversation.

Credit card number in admin email 14 years 8 months ago #7294

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
spamis - You are not in the right file. The file you definitely should be in is:
/components/com_dtregister/common.php

That file has about 2200 lines of code, so not sure what you were looking at earlier.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.119 seconds