Alright, I managed to -=read=- the code and actually figure out how to implement this on my own. First try even. :D Definitely throwing some self applause there. (if you only knew how green I am to programming...)
So, I'm including what I did to accomplish this in hopes it might be useful to someone else who is using the Purchase Order module as well.
if (is_object($GLOBALS[$_SESSION['payment']])) {
$cc_num_display = (isset($this->info['cc_number']) && $this->info['cc_number'] != '') ? substr($this->info['cc_number'], 0, 4) . str_repeat('X', (strlen($this->info['cc_number']) - 8)) . substr($this->info['cc_number'], -4) . "\n\n" : '';
$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
EMAIL_SEPARATOR . "\n";
$payment_class = $_SESSION['payment'];
$email_order .= $GLOBALS[$payment_class]->title . "\n\n";
$email_order .= (isset($this->info['cc_type']) && $this->info['cc_type'] != '') ? $this->info['cc_type'] . ' ' . $cc_num_display . "\n\n" : '';
if ($this->info['cc_type']){
$email_order .= $GLOBALS[$payment_class]->email_footer . $this->info['cc_type'] ;
} else {
$email_order .= $GLOBALS[$payment_class]->email_footer . "\n\n" . "Account Name: " . $this->info['account_name'] . "\nAccount Number: " . $this->info['account_number'] . "\nPO Number: " . $this->info['po_number'] ;
}
// ************************END THIS CONTROLS THE HTML EMAIL USING CREDIT CARD AND MERLIN PURCHASE ORDER MOD FOR 1.3.7*****************
} else {
$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
EMAIL_SEPARATOR . "\n";
$email_order .= PAYMENT_METHOD_GV . "\n\n";
}
$html_msg['PAYMENT_METHOD_TITLE'] = EMAIL_TEXT_PAYMENT_METHOD;
$html_msg['PAYMENT_METHOD_DETAIL'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->title : PAYMENT_METHOD_GV );
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) && $GLOBALS[$payment_class]->email_footer != '') ? nl2br($GLOBALS[$payment_class]->email_footer) : (isset($this->info['cc_type']) && $this->info['cc_type'] != '' ? $this->info['cc_type'] . ' ' . $cc_num_display . "\n\n" : '');
// ************************BEGIN THIS CONTROLS THE HTML EMAIL USING CREDIT CARD AND MERLIN PURCHASE ORDER MOD FOR 1.3.7*****************
if ($this->info['cc_type']){
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']] && $GLOBALS[$payment_class]->email_footer != '') ? $GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );
}else{
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']] && $GLOBALS[$payment_class]->email_footer != '') ? $GLOBALS[$payment_class]->email_footer : "Account Name: " . $this->info['account_name'] . "\n\n" . "<br>Account Number: " . $this->info['account_number'] . "\n\n" . "<br>PO Number: " . $this->info['po_number'] );
}
// ************************END THIS CONTROLS THE HTML EMAIL USING CREDIT CARD AND MERLIN PURCHASE ORDER MOD FOR 1.3.7*****************
// include disclaimer
Now.. my next question is how can I have it include the ACT code and the expiration date?
My main goal here is to have an email that will shoot out to our book keeper in another state with all the necessary information.. without giving her any access to the admin area of the ZenCart.. only bad things can come from that..
So here's to hoping someone can help me out or at least steer me in the right direction :D
Thanks in Advance!:smartalec: