Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Posts
    39
    Plugin Contributions
    0

    Default adding payment method COD to e-mail subject

    I would like to add the payment method (COD) to the confirmation e-mail subject if someone chooses a COD order.
    I have changed the subject line for my WorldPay and other payment mods in their respective callback file but I don't know how to do it for a normal COD order.
    can you tell me how to do this?
    e.g. COD Order Confirmation#1234
    or Order confirmation#1234 - COD

    cheers,

    Marco

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: adding payment method COD to e-mail subject

    Near the bottom of /includes/classes/order.php, you have this:
    Code:
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
          $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra');
    change like this:
    Code:
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id . ($_SESSION['payment']=='cod' ? '(COD) ' : ''),
          $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra');
    .

    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.

  3. #3
    Join Date
    Jun 2005
    Posts
    39
    Plugin Contributions
    0

    Default Re: adding payment method COD to e-mail subject

    again, works like a charm - thanks

 

 

Similar Threads

  1. v139h Hide COD payment method from certain customers?
    By TroyC in forum General Questions
    Replies: 3
    Last Post: 5 Apr 2013, 04:19 PM
  2. No COD Payment Method Loading
    By Advantage Online in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 22 Apr 2010, 07:01 PM
  3. COD Not showing as payment method
    By arnb in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 3 Jul 2008, 03:21 PM
  4. Quick method for adding manual (mail & fax) orders
    By rbobzin in forum General Questions
    Replies: 1
    Last Post: 17 Jan 2008, 12:46 PM

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