Please help from any php programmer.
I have a problem with this module. Problem is that the bank accout details "email_footer" are not show in the email that the customer receive with this payment form. That is very important for me!!!!
This module works fine with zen-cart 1.3.6 but is incompatible with includes/classes/order.php on zen-cart 1.3.7, then I revised the behavior of the module with both versions of zen-cart and the problem is in the following codes, but I can´t to fix it without harming the operation of order.php because I am not a php programmer.
These are the relevant codes for fix the problem.
eustandardtransfer.php
PHP Code:
define('MODULE_PAYMENT_EUTRANSFER_TEXT_TITLE', 'Pay by Direct Bank Transfer into our account');
define('MODULE_PAYMENT_EUTRANSFER_TEXT_EMAIL_FOOTER',
"Please use the following details to transfer your total order value:\n" .
"\nBank name: " . MODULE_PAYMENT_EUTRANSFER_BANKNAM .
"\nBank branch: " . MODULE_PAYMENT_EUTRANSFER_BRANCH .
"\nAccount Name: " . MODULE_PAYMENT_EUTRANSFER_ACCNAM .
"\nAccount no: " . MODULE_PAYMENT_EUTRANSFER_ACCNUM .
"\nIBAN: " . MODULE_PAYMENT_EUTRANSFER_ACCIBAN .
"\nBIC/SWIFT: " . MODULE_PAYMENT_EUTRANSFER_BANKBIC .
"\n\nThanks for your order. You will be able to download immediately after we receive payment in the above account.\n\nYou will receive an email as soon as we received the payment.");
order.php on Zen-Cart 1.3.6
PHP Code:
if (is_object($GLOBALS[$_SESSION['payment']])) {
$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'] . "\n\n" : '';
$email_order .= ($GLOBALS[$payment_class]->email_footer) ? $GLOBALS[$payment_class]->email_footer . "\n\n" : '';
} 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 : $this->info['cc_type'] );
order.php on Zen-Cart 1.3.7
PHP Code:
//addresses area: Billing
$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], 0, '', "\n") . "\n\n";
$html_msg['ADDRESS_BILLING_TITLE'] = EMAIL_TEXT_BILLING_ADDRESS;
$html_msg['ADDRESS_BILLING_DETAIL'] = zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, '', "<br />");
if (is_object($GLOBALS[$_SESSION['payment']])) {
$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'] . "\n\n" : '';
$email_order .= ($GLOBALS[$payment_class]->email_footer) ? $GLOBALS[$payment_class]->email_footer . "\n\n" : '';
} 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 != '') ? $GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );
Question is, which is the right change to the module to fix it.
Thank you for help.