If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Payment Modules / EU Standard Bank Transfer

EU Standard Bank Transfer

Locked

Started by maca2406 on 26 Jan 2007, 10:23 AM · Views: 12,248

Results 1 to 20 of 33
This thread is locked. New replies are disabled.
26 Jan 2007, 10:23 AM
#1
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

EU Standard Bank Transfer

Hi there.

I am installing and using this mod, but I have a problem. My zen-cart test version 1.3.6 works fine, but 1.3.7 my real site, don´t works ok.

The emal that the customers receive doesn't include the account number. I have revised the code but I don´t know what is the key variables or that I change one to fix this problem.

Any idea.

Mr. Robert you know???

4 Feb 2007, 10:42 PM
#2
yorkc avatar

yorkc

New Zenner

Join Date:
Feb 2007
Posts:
22
Plugin Contributions:
0

Re: EU Standard Bank Transfer

maca2406:

Hi there.

I am installing and using this mod, but I have a problem. My zen-cart test version 1.3.6 works fine, but 1.3.7 my real site, don´t works ok.

The emal that the customers receive doesn't include the account number. I have revised the code but I don´t know what is the key variables or that I change one to fix this problem.

Any idea.

Mr. Robert you know???

Your status is just opposite to mine.
The email that the customers receive is fine. But the details of bank account does not show on the page of checkout_confirmation.
It just shows as below:
Payment Method:

Pay by Direct Bank Transfer into our account

Pay by Direct Bank Transfer into our account:
MODULE_PAYMENT_EUTRANSFER_TEXT_DESCRIPTION

5 Feb 2007, 7:47 AM
#3
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

Hi.

To fix this problem, make this change in the file:
includes/languages/english/modules/payment/eustandardtransfer.php

find: ?>

Add before, this code:

define('MODULE_PAYMENT_EUTRANSFER_TEXT_DESCRIPTION',
"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.");

Enjoy :smartass:

5 Feb 2007, 7:48 AM
#4
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

I still my problem, but at this time, I know that the module is not the problem. My problem is with a file of the language that I am using, because with the files of the english language, this module with the before fix, works great.

5 Feb 2007, 10:30 PM
#5
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

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

  
  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

   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

   //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.

5 Feb 2007, 10:42 PM
#6
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

The difference either both codes is:

order.php in 1.3.6

    $html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );

order.php in 1.3.7

    $html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']] && $GLOBALS[$payment_class]->email_footer != '') ? $GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );

I don´t understand then what is the reason in the change in zen-cart 1.3.7 with order.php and more important, I don´t know how fix the modue for that works fine with 1.3.7. :cry:

Thank you

6 Feb 2007, 3:14 PM
#7
dionidis avatar

dionidis

New Zenner

Join Date:
Dec 2004
Posts:
37
Plugin Contributions:
0

Re: EU Standard Bank Transfer

Any news with this problem!?

I also have the same problem.

It works flawlessly in 1.3.6, but with 1.3.7 the customer does not receive this contents MODULE_PAYMENT_EUTRANSFER_TEXT_TITLE. :frusty:

6 Feb 2007, 5:35 PM
#8
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

**DrByte**

Please HELP

What is the reason of change on line 948 in includes/classes/order.php in Zen Cart 1.3.7 vs 1.3.6, this are both codes:

Zen Cart 1.3.6 order.php (line 948)
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_objectCOLOR=#007700 ? [/COLOR]$GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );

Zen Cart 1.3.7 order.php (line 948)
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']] && $GLOBALS[$payment_class]->email_footer != '') ? $GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );


With underline, is the difference in both codes. Why footer = '' in 1.3.7. Maybe I can to fix it usign the line of zen cart 1.3.6, but I don´t know how it affect to Zen-Cart 1.3.7

Please help, this is my main payment form, Zen Cart is useless for me without this payment form!!!

8 Feb 2007, 6:17 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: EU Standard Bank Transfer

The code change was made to correct a syntax error preventing it from properly sending the correct output.

I just installed the mod, from the downloads area, onto a fresh v1.3.7 install.
Then I placed an order.
I received the email with the proper information in the footer:

Here's the HTML email output:> **Payment Method **

Pay by Direct Bank Transfer into our account
Please use the following details to transfer your total order value:

Bank name: ***bank name
Bank branch: ***branch location
Account Name: ***bank account name
Account no: ***bank account number
IBAN: ***IBAN
BIC/SWIFT: ***BIC

Thanks for your order. You will be able to download immediately after we receive payment in the above account.

You will receive an email as soon as we received the payment.Here's the text-only email output:> Payment Method

Pay by Direct Bank Transfer into our account

Please use the following details to transfer your total order value:

Bank name: bank name
Bank branch: branch location
Account Name: bank account name
Account no: bank account number
IBAN: IBAN
BIC/SWIFT: BIC

Thanks for your order. You will be able to download immediately after we
receive payment in the above account.

You will receive an email as soon as we received the payment.

If it's not working properly, it would seem that you may have missed something in your upgrade.

(NOTE: I only tested with the English language file ... which appears to be missing a define for ...._TEXT_DESCRIPTION ... but the email functionality worked properly immediately after installing it.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Feb 2007, 7:53 AM
#10
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

Thank you DrByte

I will see what is the problem with it. Right now with a fresh install of 1.3.7 this works, but with my current install don´t works in any language.

It is possible that some third party module is causing this conflict and it will take me work to discover the problem. To know what files have relationship with the shipment of this email could help me a lot.

Thank you again for your help.

14 Feb 2007, 4:15 PM
#11
analographi avatar

analographi

New Zenner

Join Date:
Feb 2007
Posts:
33
Plugin Contributions:
0

Re: EU Standard Bank Transfer

I'm 1.3.7

I added the definitions, customer gets good email.

But on the checkout page it doesn't show the bank details but only the var... any ideas?

15 Feb 2007, 5:12 AM
#12
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

analographi:

I'm 1.3.7

I added the definitions, customer gets good email.

But on the checkout page it doesn't show the bank details but only the var... any ideas?

Please, Read my previous post of this thread for the solution.

15 Feb 2007, 5:33 AM
#13
analographi avatar

analographi

New Zenner

Join Date:
Feb 2007
Posts:
33
Plugin Contributions:
0

Re: EU Standard Bank Transfer

I did that.

And as I said.
I added the definitions, as you mentioned them, to the file. but I still get this.

24 Feb 2007, 2:29 AM
#14
florin avatar

florin

New Zenner

Join Date:
Dec 2006
Location:
Bucharest, Romania
Posts:
50
Plugin Contributions:
0

Re: EU Standard Bank Transfer

yorkc:

Your status is just opposite to mine.
The email that the customers receive is fine. But the details of bank account does not show on the page of checkout_confirmation.
It just shows as below:
Payment Method:

Pay by Direct Bank Transfer into our account

Pay by Direct Bank Transfer into our account:
MODULE_PAYMENT_EUTRANSFER_TEXT_DESCRIPTION
I got the same issue, I solved it by adding this line in includes/languages/english/modules/payment/eustandardtransfer.php

define('MODULE_PAYMENT_EUTRANSFER_TEXT_DESCRIPTION', 'Pay by Direct Bank Transfer to ... whatever you wanna write here, preferably about your bank');

and the same if you use another language, besides English, on your site, just that you translate into your language the text 'Pay by Direct Bank Transfer to...' , in (e.g. if the second language is Romanian, as in my case)
includes/languages/romanian/modules/payment/eustandardtransfer.php

:)

1 Mar 2007, 8:34 AM
#16
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

analographi:

I did that.

And as I said.
I added the definitions, as you mentioned them, to the file. but I still get this.

Sorry for the delayed response.

In the attachment of this message is the file with your problem corrected.

Extract with winzip the file eustandardtransfer.php and:

copy this file or replace at this directory:
"/includes/languages/english/modules/payment"

if you use other language that english, then copy or replace to:
"/includes/languages/YOUR LANGUAGE/modules/payment"

Tested and works fine with zen-cart 1.3.7

1 Mar 2007, 9:22 AM
#17
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

DrByte:

The code change was made to correct a syntax error preventing it from properly sending the correct output.

I just installed the mod, from the downloads area, onto a fresh v1.3.7 install.
Then I placed an order.
I received the email with the proper information in the footer:

Here's the HTML email output:Here's the text-only email output:

If it's not working properly, it would seem that you may have missed something in your upgrade.

(NOTE: I only tested with the English language file ... which appears to be missing a define for ...._TEXT_DESCRIPTION ... but the email functionality worked properly immediately after installing it.)

Dr Byte


Sorry for the long time for the response.

I have made several tests and the problem that the bank data is not sent with the emails is presented only when the option to send emails in HTML format is used (not for the user account).

For setup the HTML format, I am setting up it in this way: in the admin section go to Configuration, E-Mail Options and on Use MIME HTML When Sending Emails setup it to: TRUE.

Look this screen capture of a email in html format with the missing bank data

Maybe the real problem is in html_includes in the language code. I will revise this part now, but my knowledge is limited.

Please let me know that you think. Than you.

1 Mar 2007, 9:38 AM
#18
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: EU Standard Bank Transfer

The sending email in text mode works fine, at least in this way I can use it. This is the resulting email:

Order Confirmation from Test

test fist name test last name

Thanks for shopping with us today!
The following are the details of your order.

Order Number: 8
Date Ordered: Thursday 01 March, 2007
Detailed Invoice:
THE INVOICE WEB PAGE

Products

1 x A Bug's Life Linked (DVD-ABUG) = $35.99

Sub-Total: $35.99
Per Item (Best Way): $2.50
FL TAX 7.0%: $2.52
Total: $41.01

Delivery Address

test company
test fist name test last name
testing street
test city, FL test zip
United States

Billing Address

test company
test fist name test last name
testing street
test city, FL test zip
United States

Payment Method

Pay by Direct Bank Transfer into our account
Please use the following details to transfer your total order value:
Bank name: test bank
Bank branch: ---
Account Name: ---
Account no: 123456-00
IBAN: ---
BIC/SWIFT: ---

Thanks for your order. You will be able to download immediately after we receive payment in the above account.
You will receive an email as soon as we received the payment.


This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to [email protected]


Copyright (c) 2007 Zen Cart. Powered by Zen Cart

27 Mar 2007, 5:20 AM
#19
duwane avatar

duwane

Zen Follower

Join Date:
Aug 2004
Location:
Auckland, New Zealand
Posts:
120
Plugin Contributions:
0

Re: EU Standard Bank Transfer

Hi maca2406.

Did you ever fix this problem? I have the same thing happening to me. Zen 1.3.7.

When the customer is configured to receive text only emails the bank details are there and everything works well. If the customer has their email option set to HTML the bank details are not there.... seems like ZC isn't doing what it is supposed to for the HTML email?:cry:

27 Mar 2007, 5:52 AM
#20
duwane avatar

duwane

Zen Follower

Join Date:
Aug 2004
Location:
Auckland, New Zealand
Posts:
120
Plugin Contributions:
0

Re: EU Standard Bank Transfer

It seems that the problem is occurring in includes/classes/order.php line 956 as below (ZC 1.3.7):

$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']] && $GLOBALS[$payment_class]->email_footer != '') ? $GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );

I have tested and $GLOBALS[$payment_class]->email_footer does contain the correct text so why does that statement equate to false???

Any ideas anyone?