Forums / Templates, Stylesheets, Page Layout / add custom text to order confirmation email

add custom text to order confirmation email

Locked

Views: 4,881

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
24 Nov 2006, 6:17 PM
#1
wolf99 avatar

wolf99

Zen Follower

Join Date:
Sep 2006
Location:
West of Ireland
Posts:
169
Plugin Contributions:
0

add custom text to order confirmation email

How can I add some custom text to the order confirmation email?

I have:
"Thanks for shopping with us today!
The following are the details of your order."

I need:

"Thanks for shopping with us today!
Please note, that as specified on the website, some deliveries may take up to 10 days.
The following are the details of your order."

Any Clues?

24 Nov 2006, 9:30 PM
#2
gearstudios avatar

gearstudios

New Zenner

Join Date:
Sep 2005
Posts:
88
Plugin Contributions:
0

Re: add custom text to order confirmation email

Hello,
To change that bit of text you will need to go to /includes/languages/english/checkout_process.php on around line 27.

Make sure to use the override system.

Zen-Cart, The Greatest Shopping Cart!

24 Nov 2006, 10:36 PM
#3
wolf99 avatar

wolf99

Zen Follower

Join Date:
Sep 2006
Location:
West of Ireland
Posts:
169
Plugin Contributions:
0

Re: add custom text to order confirmation email

Kinda was thinking that. here's whats in that file, Check line 5 with the stars:

define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');
define('EMAIL_TEXT_HEADER', 'Order Confirmation');
define('EMAIL_TEXT_FROM',' from '); //added to the EMAIL_TEXT_HEADER, above on text-only emails
define('EMAIL_THANKS_FOR_SHOPPING','Thanks for shopping with us today!');
CAN I JUST START TYPING IN MY TEXT HERE??**
define('EMAIL_DETAILS_FOLLOW','The following are the details of your order.');
define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');
define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:');
define('EMAIL_TEXT_INVOICE_URL_CLICK', 'Click here for a 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');

Or do I need to set up a define? how do I do that?

25 Nov 2006, 6:19 AM
#4
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: add custom text to order confirmation email

change this line:

define('EMAIL_DETAILS_FOLLOW','The following are the details of your order.');

to

define('EMAIL_DETAILS_FOLLOW','Please note, that as specified on the website, some deliveries may take up to 10 days. \nThe following are the details of your order.');

pretty sure that would work.. not 100% positive though

30 Nov 2006, 8:31 PM
#5
wolf99 avatar

wolf99

Zen Follower

Join Date:
Sep 2006
Location:
West of Ireland
Posts:
169
Plugin Contributions:
0

Re: add custom text to order confirmation email

Just to say thanks, that worked a treat.

the \n didn't seem to work though, nor <br />.
Anyone now how to "newline" inside define statements?

25 Sep 2007, 3:03 AM
#6
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: add custom text to order confirmation email

samad64:

change this line:

define('EMAIL_DETAILS_FOLLOW','Please note, that as specified on the website, some deliveries may take up to 10 days. \nThe following are the details of your order.');

Use this...

define('EMAIL_DETAILS_FOLLOW','Please note, that as specified on the website, some deliveries may take up to 10 days. ' . "\n" .'The following are the details of your order.');