Email Configuration

More
12 years 11 months ago #9442 by CCC
Email Configuration was created by CCC
Anyone that can help with email config.. basically got it all mapped out except want to add another "tag" field to the custom script.

Want to grab Transaction ID out of Rego Details and dump into text further down. Anyone know how to do this? Where are email Tags defined?

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

More
12 years 11 months ago #9450 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Email Configuration
Hi

Transaction ID is available in [REGISTRATION_DETAIL] tag already, so I didn't make this tag available . In this case :

1. If you want to add [TRANSACTION_ID] tag, open the file components/com_eventbooking/helper/helper.php, looks at sendMails function (from line 436) and find the code below :
Code:
$replaces['event_title'] = $eventTitle ; $replaces['first_name'] = $row->first_name ; $replaces['last_name'] = $row->last_name ; $replaces['organization'] = $row->organization ; $replaces['address'] = $row->address ; $replaces['address2'] = $row->address ; $replaces['city'] = $row->city ; $replaces['state'] = $row->state ; $replaces['zip'] = $row->zip ; $replaces['country'] = $row->country ; $replaces['phone'] = $row->phone ; $replaces['fax'] = $row->phone ; $replaces['email'] = $row->email ; $replaces['comment'] = $row->comment ; $replaces['amount'] = number_format($row->amount, 2) ;

Add this code below the above code :
Code:
$replaces['transaction_id'] = $row->transaction_id ;


After that, [TRANSACTION_ID] will be one of the available tags .


To remove transaction ID from [REGISTRATION_DETAIL], you will need to look at the code components/com_eventbooking/emailtemplates/cart.php, find the code and remove it !

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc