Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding a postcode / zipcode to an email subject line

    Hi
    I am presently using opencart, and need to add a postcode / zipcode to the subject line that the admin gets (when an order is placed)


    and the line is

    213
    PHP Code:
    $subject sprintf($language->get('text_new_subject'), $order_info['store_name'], $order_id); 
    I think the database wording is
    payment_postcode

    but Im guessing the correct variable will be somewhere in the file below


    how do I do this

    any help greatly appreciated

    the script is attached as its to long to post



    thanks
    Attached Files Attached Files

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    To update it properly you should change the format of text_new_subject and add an argument to the sprintf() function. But, you can simply append it like so:
    PHP Code:
    $subject sprintf($language->get('text_new_subject'), $order_info['store_name'], $order_id) . ' Postal Code: ' $order_info['payment_postcode'];
    // Or
    $subject sprintf($language->get('text_new_subject'), $order_info['store_name'], $order_id);
    $subject .= ' Postal Code: ' $order_info['payment_postcode']; 

  • #3
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you so much, it works perfectly !!


  •  

    Posting Permissions

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