Results 1 to 10 of 33

Threaded View

  1. #5
    Join Date
    Jan 2007
    Posts
    32
    Plugin Contributions
    0

    Default 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
    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.
    Last edited by maca2406; 5 Feb 2007 at 11:37 PM.

 

 

Similar Threads

  1. EU Standard Bank Transfer - Blank final page?
    By wizer in forum Addon Payment Modules
    Replies: 0
    Last Post: 4 Nov 2010, 01:54 PM
  2. EU Standard Bank Transfer Support
    By js5729 in forum Addon Payment Modules
    Replies: 5
    Last Post: 13 Mar 2009, 03:38 PM
  3. EU Standard Bank Transfer mod work for U.S.?
    By coucho in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 24 Jun 2008, 12:44 AM
  4. Eu Standard Bank Transfer
    By Sudakoma in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Sep 2006, 12:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg