Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing email confirmation dynamicly


Guest

Recommended Posts

Posted

hello,

 

i have found through the wiki how to add more messages to the confirmation email

 

now what i would like is how do i add dynamic information such as:

 

- Customers Name

- Order Number

- Product(s) that were ordered

 

So i would say something like (where the XXXXXX are the dynamic info listed above):

 

Dear XXXXXX,

 

Thank you for ordering! This email confirms that you will be receiving XXXXXXXXX.? Your order confirmation number is: XXXXXX. Please print out a copy of this confirmation as your receipt and do not delete this email.

 

 

Thanks for the time.

Posted

does this make sense?

 

let me know if more info is needed for help.

 

this is the last issue i have with osc before i can launch live.

 

thanks.

Posted

Hi, you can customize the file that sends out email confirmation:

 

/catalog/checkout_process.php

 

Add to one of the $email_order lines this variable: $order->customer['firstname']

 

The way I have it set is as follows:

 

$email_order = '<strong>Dear ' . $order->customer['firstname'] . ',</strong>

<br><strong><font color=#ccc000>Thank you for your order!</font></strong><br>

Your order has been processed successfully and will be shipped to you within 24 hours.<br>' .

EMAIL_TEXT_ORDER_NUMBER . ' <strong>' . $insert_id . '</strong>. ' .

EMAIL_TEXT_INVOICE_URL . ' ' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . '">click here</a> ' . "\n" . EMAIL_SEPARATOR . "\n" .

EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";

 

 

Hope this helps.

Posted

hello ajax,

 

i tried out what you said but it was messing up my payment part.

 

what was happening is after the customer comes back from our credit card merchant, it just shows a blank page when it is supposed to got back to the final success page within osc.

but when i remove all the code that you mentioned, it is ok.

 

 

maybe i am not clear with where you put the code

 

"Add to one of the $email_order lines this variable: $order->customer['firstname']"

 

where did u put this?

 

are you using a credit card merchant in your osc?

 

thanks again for the help

Posted

Hi,

 

You can't take the exact code and put it in there, it won't work. It was an example of how it can be done rather than an exact solution.

 

Find this line: $email_order =

This is the start of the email.

 

every line after this which reads: $email_order .=

Is an additional line inside the output email.

 

This is a simple email:

 

$email_order = 'Dear' . $order->customer['firstname'] . ', ' . "\n";

$email_order .= EMAIL_TEXT_ORDER_NUMBER . ':' . $insert_id . '.' . "\n";

$email_order .= EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";

 

and will output:

 

Dear client_name,

Order number: order_number.

Date ordered dd/mm/yyyy

 

You will need some coding knowledge to get this to work. If you're still having a problem pm me your file and I can have a look at what you attempted to do and why it messed up the payment thing.

 

Warning: I'm a newbie myself.. :unsure:

Posted

I didn't mean for those automatically generated emails...I meant for the ones you can sent out manually from admin...Newsletters and Emails to Subscribers. I was hopiing to be able to create some fancy store ""Newspapers" to let people know of updates and additions to products.

Posted

dchockenberry,

 

where is your last response? you are making a reference to another post, but i don't see it.

 

anyways, check this link for a PHP mailing list to help you with your newsletters. i don't think osc can do HTML and graphics.

 

http://tincan.co.uk/phplist

 

 

and ajax,

 

thanks again for the response, i will send you some code in a bit.

Posted

Yeah I realized that after I posted...I get notifications via email and I commented as if I had posted before without realizing it. I meant to just say that I wasnt sure how to use html in admin emails in general. I didnt mean to make it sound like I posted before....thats what I get for being half asleep when I post.

 

lol sorry about that. :lol:

Archived

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

×
×
  • Create New...