Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Show order number in payment info section of order confirmation e-mail

    When a customer chooses to pay using Direct Bank Transfer, the order e-mail confirmation shows the bank code, swift code, etc. they need to use. I have added a field there called reference number that they should use when sending the transfer. I would like the reference number to be their order number. I have tried a few different things, but the order number doesn't show in the e-mail confirmation. This is what I currently have in includes/languages/english/modules/payment/dirbank.php:

    define('MODULE_PAYMENT_DIRBANK_TEXT_EMAIL_FOOTER',
    "Please use the following details to transfer your total order value:\n\n" .
    "\nAccount No.: " . MODULE_PAYMENT_DIRBANK_ACCNUM .
    "\nBSB Number: " . MODULE_PAYMENT_DIRBANK_BSB .
    "\nAccount Name: " . MODULE_PAYMENT_DIRBANK_ACCNAM .
    "\nBank Name: " . MODULE_PAYMENT_DIRBANK_BANKNAM .
    "\nReference No: " . $zv_orders_id . );
    I am just not sure what to use there to get the order number.

    Thanks!
    Danielle

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,149
    Plugin Contributions
    11

    Default Re: Show order number in payment info section of order confirmation e-mail

    You've got a define in a define and trying to insert a result where the file is looking for another define.
    Quick thought is to look at the file that defines the other MODULE_PAYMENT_DIRBANK_.... defines and define something like MODULE_PAYMENT_DIRBANK_BANKORDER as $zv_orders_id.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Show order number in payment info section of order confirmation e-mail

    Or use a printf function and associated reference to echo the above definition.

    Ie:
    Code:
    define('MY_CONSTANT', 'info to display and order_id: %s');
    In presentation:
    Code:
    printf(MY_DEFINE, $zv_orders_id);
    Reason is that language definitions are called before the associated data is made available, so basically the $zv_orders_id is null at the time the define is processed. The above was shown with a single variable; however, if there are two or more and it is designed to possibly use more than one language, then would want to use a sort of reference for each such use so that they can be resequenced within the define and the assigning printf function can remain unchanged.
    Last edited by mc12345678; 15 Feb 2017 at 09:12 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Show order number in payment info section of order confirmation e-mail

    Consider this change I recommended in the AUS version of the Direct Bank Deposit module:
    https://www.zen-cart.com/showthread....29#post1325229
    .

    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.

  5. #5
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Show order number in payment info section of order confirmation e-mail

    Quote Originally Posted by DrByte View Post
    Consider this change I recommended in the AUS version of the Direct Bank Deposit module:
    https://www.zen-cart.com/showthread....29#post1325229
    Perfect, thank you!
    Danielle

 

 

Similar Threads

  1. v150 Swipe HQ payment module - Order confirmation E-mail
    By mikecnz in forum Addon Payment Modules
    Replies: 1
    Last Post: 29 Jul 2013, 03:40 AM
  2. Order confirmation mail includes junk info? Please help.
    By cleasterwood in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Mar 2009, 07:07 PM
  3. Credit card number in E-mail order confirmation
    By SanchoPanza in forum Managing Customers and Orders
    Replies: 15
    Last Post: 29 Mar 2008, 10:56 PM
  4. Order Confirmation e-mail order by model
    By WmKenny in forum Managing Customers and Orders
    Replies: 8
    Last Post: 8 Jan 2008, 02:47 PM
  5. Order Confirmation emails and payment-details info
    By drkramer in forum General Questions
    Replies: 2
    Last Post: 8 May 2007, 07:11 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR