Elazar Posted September 7, 2006 Posted September 7, 2006 Hi, New to php, could someone help me please ?? I want add for the order email confirmation: 1. Time of ordering 2. The invoice url does't function as a link from the moment I changed the email format to mime html, and I want please to fix it. My checkout_proccess.php is below: Any help please will be much appreciated! Thanks in advance! :) Elazar // 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) . "\n\n"; if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
Guest Posted September 7, 2006 Posted September 7, 2006 Hi, I dont know much about php but the documentation oscommerce supply tells you what to do on page 62. Have a read but the main point is this: "NOTE: that if you use MIME e-mail you should change all occurances of "\n" to "<br>" Hope that helps Rick
Elazar Posted September 7, 2006 Author Posted September 7, 2006 Hi, I dont know much about php but the documentation oscommerce supply tells you what to do on page 62. Have a read but the main point is this: "NOTE: that if you use MIME e-mail you should change all occurances of "\n" to "<br>" Hope that helps Rick Hi Rick ! Thank you so much for your reply ! I tried this but it didn't solve the problem... Thanks again for helping. Elazar
Recommended Posts
Archived
This topic is now archived and is closed to further replies.