Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

edit confirmation email


Guest

Recommended Posts

i need to edit the email that is sent out when a customer confirms an order from the cart.

 

where can i find the file which is reqired to be edited??

 

thanks

Link to comment
Share on other sites

alright guys! since no one could've help so i went to mess up with my store to find the answer, & i finally got it!!

 

it's in the checkout_process.php file! find these lines

 

if (is_object($$payment)) {

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .

EMAIL_SEPARATOR . "\n";

$payment_class = $$payment;

$email_order .= "custom instructions here";

if ($payment_class->email_footer) {

$email_order .= $payment_class->email_footer . "\n\n";

}

}

 

just edit the text that i've stated 'custom instructios here' will do it

 

:)

Link to comment
Share on other sites

Danieln

I glad you found something - I too was about to ask the same question.

 

However, I followed your directions, but the changes aren't taking affect. I changed the checkout_process.php in the root directory. The copy that is in the includes/languages etc... didn't have the text you quoted above.

 

Any further suggestions. Could it be because My text has hard returns. Should I be using html code in it like <br> instead of hitting the hard return.

 

Here is what I put in...

 

<< snippet from checkout_process.php page >>

 

$email_order .= "Welcome to Peggy Grall & Associates.

You are now eligible to take part in our on-line services. Some of these services include:

 

? Permanent Cart - Any products added to your online cart remain there until you remove them, or purchase them. This allows you to choose products now and purchase them at a later date.

? Address Book ? You can have products delivered to an address other than yours! This is the perfect way to send special occasion gifts directly to the individuals on your list.

? Order History - View your purchase history ? any time you like

? Product Reviews - Share your opinions about our products with other customers.

 

For help with any of our online services, please email the store-owner:

[email protected].

 

Note: This email address was given to us by one of our customers. If you do not wish to be included in membership or receive notices of upcoming events and product launches, simply send an email to [email protected] with the words ?Unsubscribe? in the subject line. We apologize for any inconvenience this correspondence may have caused you. ";

 

Then I commented out the old text in case I needed it later.

//$payment_class->title . "\n\n";

 

Could it be because of the quotations within the text?

 

Anyone???

Link to comment
Share on other sites

nope

 

it's the checkout_process.php file in the top folder (catalog if u didn't make changes)

 

it's some were at line 25

 

let me know if u still need help :) :)

Link to comment
Share on other sites

i'm not sure on the html coding as i did not try html on the email

 

but if you were to edit with format, i guess u'll need to use the <br> codes instead.

 

tips: i did this editing for other sections in the web site. i used frontpage to type & do the formating. once it's ok, i'll copy the code & paste over. it saves time a lot if u r not very good in html :)

 

:) cheers :)

Link to comment
Share on other sites

IMO: for what little that's worth. You would be better to add a line to your english.php file to define your custom message. This makes it much easier if you are supporting multiple languages because you can change your message accordingly in each language file.

 

EXAMPLE:

in english.php add something similar to this and remember you can use your HTML tags here.

 

//custom email messages

define('TEXT_EMAIL_CUSTOMER_CHECKOUT','Thank you for purchasing from our store.<br><b>Or anything else you desire to say.</b>');

 

then in checkout process.php

 

change:

 

if (is_object($$payment)) {
$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
EMAIL_SEPARATOR . "\n";
$payment_class = $$payment;
$email_order .= "custom instructions here";
if ($payment_class->email_footer) { 
$email_order .= $payment_class->email_footer . "\n\n";
} 
}

 

to:

 

if (is_object($$payment)) {
$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
EMAIL_SEPARATOR . "\n";
$payment_class = $$payment;
$email_order .= TEXT_EMAIL_CUSTOMER_CHECKOUT;
if ($payment_class->email_footer) { 
$email_order .= $payment_class->email_footer . "\n\n";
} 
}

 

Then you can easily edit it at anytime by simply going to your language files. Makes much more sense and is simply a more elegant way to do it. :D

 

Hope this has been useful. TOODLES

ElLeonBlanco

 

"The man of genius makes no mistakes. His errors are volitional and are the portals of discovery." James Joyce (1882?1941)

Link to comment
Share on other sites

IMO: for what little that's worth. You would be better to add a line to your english.php file to define your custom message. This makes it much easier if you are supporting multiple languages because you can change your message accordingly in each language file.

 

EXAMPLE:

in english.php add something similar to this and remember you can use your HTML tags here.

 

//custom email messages

define('TEXT_EMAIL_CUSTOMER_CHECKOUT','Thank you for purchasing from our store.<br><b>Or anything else you desire to say.</b>');

 

then in checkout process.php

 

change:

 

if (is_object($$payment)) {
$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
EMAIL_SEPARATOR . "\n";
$payment_class = $$payment;
$email_order .= "custom instructions here";
if ($payment_class->email_footer) { 
$email_order .= $payment_class->email_footer . "\n\n";
} 
}

 

to:

 

if (is_object($$payment)) {
$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
EMAIL_SEPARATOR . "\n";
$payment_class = $$payment;
$email_order .= TEXT_EMAIL_CUSTOMER_CHECKOUT;
if ($payment_class->email_footer) { 
$email_order .= $payment_class->email_footer . "\n\n";
} 
}

 

Then you can easily edit it at anytime by simply going to your language files. Makes much more sense and is simply a more elegant way to do it. :D

 

Hope this has been useful. TOODLES

 

well that's a good idea. never thought bout it as i only use english in my site.

Link to comment
Share on other sites

  • 4 weeks later...

Not that some people would want to, but you can link an image into the english.php file so you get a header at the top of your email.

 

Follow the english.php instructions alraedy posted but tweek it like this

 

Change this

 

 

define('TEXT_EMAIL_CUSTOMER_CHECKOUT','Thank you for purchasing from our store.

 

To this

 

define('TEXT_EMAIL_CUSTOMER_CHECKOUT','<img src="http://www.yoursite.com/catalog/images/yourimage.gif"><br>Thank you for purchasing from our store.

 

Right at the start of the email bit in checkout_process.php (arond line 227)

 

 

Change this

// lets start with the email confirmation
 $email_order = STORE_NAME . "\n" .

 

To this

// lets start with the email confirmation
 $email_order = TEXT_EMAIL_CUSTOMER_CHECKOUT . "\n" .

 

Now I get an imbeded image banner on all checkout emails, called for from my site. I just don't know what it will do if an exchange server dosent like images?

 

Hope this helps someone?

 

Also thanks to everyone above for making this happen for me! :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...