Guest Posted August 20, 2005 Share Posted August 20, 2005 HI Q NUMBER 1 I would like to change the setup of the email that is automatically sent to the customer after they complete the order process. I have been playing around but after thinking I had done it, it didnt work. I want to include a short paragraph at the top thanking them for their order etc. Please find below what the code looks like. <?php /* $Id: checkout_process.php,v 1.26 2002/11/01 04:22:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('EMAIL_TEXT_SUBJECT', 'Thank you for your order from ' . STORE_NAME); define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:'); define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:'); define('EMAIL_TEXT_DATE_ORDERED', 'Date Ordered:'); define('EMAIL_TEXT_PRODUCTS', 'Products'); define('EMAIL_TEXT_SUBTOTAL', 'Sub-Total:'); define('EMAIL_TEXT_TAX', 'Tax: '); define('EMAIL_TEXT_SHIPPING', 'Shipping: '); define('EMAIL_TEXT_TOTAL', 'Total: '); define('EMAIL_TEXT_DELIVERY_ADDRESS', 'Delivery Address'); define('EMAIL_TEXT_BILLING_ADDRESS', 'Billing Address'); define('EMAIL_TEXT_PAYMENT_METHOD', 'Payment Method'); define('EMAIL_SEPARATOR', '------------------------------------------------------'); define('TEXT_EMAIL_VIA', 'via'); ?> If I want to add in the paragraph of text what do I need to do?? i.e. define('EMAIL_TEXT........... Q NUMBER 2 I want to add my address details to the "Contact Us" Page I have tried to do this also and it did work, but when a message was typed and send all that I got was a white screen... Could anyone tell me how to do it properly. As always Electra Sales really appreciate your help Ross :thumbsup: Link to comment Share on other sites More sharing options...
Guest Posted August 20, 2005 Share Posted August 20, 2005 Hi, Please can anyone help me??? Thanks in advance Ross :-) Link to comment Share on other sites More sharing options...
Shooter Posted August 20, 2005 Share Posted August 20, 2005 HIQ NUMBER 1 I want to include a short paragraph at the top thanking them for their order etc. Add whatever text you like on the line you found: define('EMAIL_TEXT_SUBJECT', 'Thank you for your order from ' . STORE_NAME); i.e. define('EMAIL_TEXT_SUBJECT', 'Thank you for your order from ' . STORE_NAME . 'We really appreciate your business, and are glad you chose us. Please tell all your friends, and let us know if you have any questions... blah, blah, blah...'); Wm Link to comment Share on other sites More sharing options...
Guest Posted August 20, 2005 Share Posted August 20, 2005 Add whatever text you like on the line you found:define('EMAIL_TEXT_SUBJECT', 'Thank you for your order from ' . STORE_NAME); i.e. define('EMAIL_TEXT_SUBJECT', 'Thank you for your order from ' . STORE_NAME . 'We really appreciate your business, and are glad you chose us. Please tell all your friends, and let us know if you have any questions... blah, blah, blah...'); Wm <{POST_SNAPBACK}> Thanks for your advice, I havnt tried it yet but are you sure it will work? Its just that define('EMAIL_TEXT_SUBJECT', 'Thank you for your order from ' . sets the subject line of the email. Surly if I type in there it will just make an extra large subject bar in the email. I will give it a go, but can you thin of anything else. For example define('EMAIL_TEXT_BODY', 'Thank you buying from Electra sales.............Bhaa bhaa. Thanks Ross :thumbsup: Link to comment Share on other sites More sharing options...
Shooter Posted August 20, 2005 Share Posted August 20, 2005 Thanks for your advice, I havnt tried it yet but are you sure it will work? Its just that define('EMAIL_TEXT_SUBJECT', 'Thank you for your order from ' . sets the subject line of the email. Surly if I type in there it will just make an extra large subject bar in the email. Sorry, looks like I pasted the wrong line. I missed the "subject" part. I think you're looking at the wrong checkout_process file. Look under \catalog\includes\checkout_process.php. Around line 249 you'll see the Email confirmation: //lets start with the email confirmation $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . etc..... I would insert your message in there, at whatever point it feels appropriate: //lets start with the email confirmation $email_order = "'Thank you for your order from ' . STORE_NAME . 'We really appreciate your business, and are glad you chose us. Please tell all your friends, and let us know if you have any questions... blah, blah, blah... \n" . EMAIL_SEPARATOR . "\n" . etc..... I haven't tried that yet though... Wm Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.