beckysmith Posted November 8, 2002 Share Posted November 8, 2002 I've searched and found part of the answer but, how do I add extra text to the order confirmation E-mails? I've found this in the checkout_process.php page - and notice that it's allowing comments to be added to the E-mail... but how do I put text into comments field and make this active to be sent out with the E-mails? I basically just need to add 2-3 lines of text with every confirmation E-mail sent out.... //lets start with the email confirmation $email_order = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "nn"; if ($order->info['comments']) { $email_order .= $order->info['comments'] . "nn"; } $email_order .= EMAIL_TEXT_PRODUCTS . "n" . EMAIL_SEPARATOR . "n" . $products_ordered . EMAIL_SEPARATOR . "n"; Or am I wrong? Is there a simpler way just to add 2-3 lines of text to every order confirmation e-mail? Link to comment Share on other sites More sharing options...
beckysmith Posted November 9, 2002 Author Share Posted November 9, 2002 I've tried everything but for the life of me, I cannot get this working :( Link to comment Share on other sites More sharing options...
sw45859 Posted November 9, 2002 Share Posted November 9, 2002 do you need a set comment of do you need to change it every time? Link to comment Share on other sites More sharing options...
beckysmith Posted November 9, 2002 Author Share Posted November 9, 2002 Thanks :) Just a set comment... just 3-4 lines of text to give people a bit more information. Link to comment Share on other sites More sharing options...
Guest Posted November 9, 2002 Share Posted November 9, 2002 See if this will help you. Q. How do you customize the email that is sent out when an order is placed? Ans. catalogcheckout_process.php -- it establishes the mail variables and sets their values. Somewhere after the section that reads, "// lets start with the email confirmation," you will want to add something to the effect of: $email_order .= "n" . "You should have it as soon as we can plug the leaks :-)"; :P Link to comment Share on other sites More sharing options...
Guest Posted November 9, 2002 Share Posted November 9, 2002 I just realized that since the code has been changed this changed also...will see if I can find something. Link to comment Share on other sites More sharing options...
burt Posted November 9, 2002 Share Posted November 9, 2002 //lets start with the email confirmation $email_order = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "nn"; if ($order->info['comments']) { $email_order .= $order->info['comments'] . "nn"; } $email_order .= EMAIL_TEXT_PRODUCTS . "nn" . $email_order .= "Your 2 or 3 lines of text goes here...rnMake sure to make a new line usingrn not just nEasy ;?) rnrn" . EMAIL_SEPARATOR . "n" . $products_ordered . EMAIL_SEPARATOR . "n"; Link to comment Share on other sites More sharing options...
beckysmith Posted November 9, 2002 Author Share Posted November 9, 2002 Thanks Burt (and everyone else!) I will give that a go :) Link to comment Share on other sites More sharing options...
beckysmith Posted November 9, 2002 Author Share Posted November 9, 2002 Strange - it's printing out those comments twice in the E-mail.... Why is this? Link to comment Share on other sites More sharing options...
bdownes Posted November 19, 2002 Share Posted November 19, 2002 If it shows up twice only use.... if ($order->info['comments']) { $email_order .= $order->info['comments'] . "nn"; } $email_order .= "Your 2 or 3 lines of text goes here...rnMake sure to make a new line usingrn not just nEasy ;?) rnrn" . $products_ordered . EMAIL_SEPARATOR . "n"; Jared Geesey Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.