demastermind Posted July 15, 2011 Share Posted July 15, 2011 Hello, I have a really quick question. After the customer orders something they get sent a email. Where is the file that controls the content of the email. I would like to spice it up because it is really blah. Thanks. - Luc My Installed Contributions: 1. Ultimate SEO URLs V 2-2.2d-X 2. Quantity Box on Product Info Page 3. httpbl4osc Version 1.1.0 4. QTpro for osc 2.3 5. Header Tags SEO V 3.0 (For 2.3) 6. DHTML State Selection for 2.3.1 And Good To Know: I use a 960gs fluid style sheet. I do have a honey pot on my website. Store Version: 2.3 “Pain is temporary. Quitting lasts forever." - Lance Armstrong Link to comment Share on other sites More sharing options...
germ Posted July 15, 2011 Share Posted July 15, 2011 /catalog/checkout_process.php If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
panicgripdesigns Posted July 15, 2011 Share Posted July 15, 2011 If you don't know any programming code, it may look VERY intimidating. // 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"; But it is possible to "spice up." We mainly just added the customer's phone number and email address into the body, and added an order number to the subject. Do you have any coding experience? A little knowledge of php goes a long way. Link to comment Share on other sites More sharing options...
demastermind Posted July 16, 2011 Author Share Posted July 16, 2011 But it is possible to "spice up." We mainly just added the customer's phone number and email address into the body, and added an order number to the subject. Do you have any coding experience? I am very good with HTML and CSS, very good... PHP is another story, I'm learning as I go... and at a tortises pace! Can you tell me how to add the order number to the subject and the customer's phone number to the email? Thanks. - Luc By the way thank you germ for showing me the file the code for the email is located at. My Installed Contributions: 1. Ultimate SEO URLs V 2-2.2d-X 2. Quantity Box on Product Info Page 3. httpbl4osc Version 1.1.0 4. QTpro for osc 2.3 5. Header Tags SEO V 3.0 (For 2.3) 6. DHTML State Selection for 2.3.1 And Good To Know: I use a 960gs fluid style sheet. I do have a honey pot on my website. Store Version: 2.3 “Pain is temporary. Quitting lasts forever." - Lance Armstrong Link to comment Share on other sites More sharing options...
demastermind Posted July 16, 2011 Author Share Posted July 16, 2011 EMAIL_B.JPG: EMAIL_A.JPG I am very good with HTML and CSS, very good... PHP is another story, I'm learning as I go... and at a tortises pace! Can you tell me how to add the order number to the subject and the customer's phone number to the email? Thanks. - Luc panicgripdesings, I would still like you to help me with puting in the order number into the email subject. In other news: I was working on the email and when I get something to work, I break something else. Litterly. Even more litterly. Every other $email_order works. In one email test half work and in the next email the other half work. Look at what follows. I have EMAIL_A.PHP and EMAIL_A.JPG. I have EMAIL_B.PHP and EMAIL_B.JPG. EMAIL_B is the more correct of the two. The $email_orders of EMAIL_A should go in between the $email_orders of EMAIL_B. Both have all the fields, but only half will show up. I have attached EMAIL_A.JPG and EMAIL_B.JPG. They are both marked with text so you should just be able to look at the picture and understand the problem. I really need some help with getting these emails to work. Thanks. - Luc EMAIL_B.PHP: // lets start with the email confirmation EMAIL_B $email_order = EMAIL_FULL_DIV_START . ' ' . EMAIL_TEXT_H_START . ' ' . STORE_NAME . ' ' . EMAIL_TEXT_MOTTO . ' ' . "\n" . EMAIL_HR . ' ' . "\n" . EMAIL_BOLD_SPAN_START . ' ' . EMAIL_TEXT_ORDER_NUMBER . ' ' . EMAIL_BOLD_SPAN_END . ' ' . $insert_id . "\n" . EMAIL_BOLD_SPAN_START . ' ' . EMAIL_TEXT_INVOICE_URL . ' ' . EMAIL_BOLD_SPAN_END . ' ' . EMAIL_AHREF_START . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . ' ' . EMAIL_TAG_END_WITH . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . ' ' . EMAIL_AHREF_END . "\n" . EMAIL_BOLD_SPAN_START . ' ' . EMAIL_TEXT_DATE_ORDERED . ' ' . EMAIL_BOLD_SPAN_END . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= EMAIL_BOLD_SPAN_START . ' ' . EMAIL_TEXT_COMMENTS . ' ' . EMAIL_BOLD_SPAN_END . ' ' . tep_db_output($order->info['comments']) . ' ' . "\n\n\n"; } $email_order .= EMAIL_HR . "\n" . EMAIL_TEXT_THANKS . "\n" . EMAIL_HR . ' ' . "\n"; $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . $products_ordered . EMAIL_HR . "\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_HR . ' ' . "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . ' ' . "\n"; } $email_order .= "\n" . EMAIL_HR . ' ' . "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($payment)) { $email_order .= EMAIL_HR . ' ' . "\n" . EMAIL_TEXT_PAYMENT_METHOD . "\n"; $payment_class = $payment; $email_order .= $order->info['payment_method'] . "\n\n"; if (isset($payment_class->email_footer)) { $email_order .= $payment_class->email_footer . "\n\n"; } } $email_order .= EMAIL_NW_LOGO . ' ' . EMAIL_FULL_DIV_END . "\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); EMAIL_A.PHP: // lets start with the email confirmation EMAIL_A $email_order = EMAIL_FULL_DIV_START . ' ' . EMAIL_TEXT_H_START . ' ' . STORE_NAME . ' ' . EMAIL_TEXT_MOTTO . ' ' . "\n" . EMAIL_HR . ' ' . "\n" . EMAIL_BOLD_SPAN_START . ' ' . EMAIL_TEXT_ORDER_NUMBER . ' ' . EMAIL_BOLD_SPAN_END . ' ' . $insert_id . "\n" . EMAIL_BOLD_SPAN_START . ' ' . EMAIL_TEXT_INVOICE_URL . ' ' . EMAIL_BOLD_SPAN_END . ' ' . EMAIL_AHREF_START . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . ' ' . EMAIL_TAG_END_WITH . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . ' ' . EMAIL_AHREF_END . "\n" . EMAIL_BOLD_SPAN_START . ' ' . EMAIL_TEXT_DATE_ORDERED . ' ' . EMAIL_BOLD_SPAN_END . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= EMAIL_BOLD_SPAN_START . ' ' . EMAIL_TEXT_COMMENTS . ' ' . EMAIL_BOLD_SPAN_END . ' ' . tep_db_output($order->info['comments']) . ' ' . "\n\n"; } $email_order .= EMAIL_TEXT_THANKS . "\n" . EMAIL_HR . "\n"; $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . $products_ordered . EMAIL_HR . "\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_HR . ' ' . "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } $email_order .= "\n" . EMAIL_HR . ' ' . "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($payment)) { $email_order .= EMAIL_HR . ' ' . "\n" . EMAIL_TEXT_PAYMENT_METHOD . "\n"; $payment_class = $payment; $email_order .= $order->info['payment_method'] . "\n\n"; if (isset($payment_class->email_footer)) { $email_order .= $payment_class->email_footer . "\n\n"; } } $email_order .= EMAIL_NW_LOGO . ' ' . EMAIL_FULL_DIV_END . "\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); My Installed Contributions: 1. Ultimate SEO URLs V 2-2.2d-X 2. Quantity Box on Product Info Page 3. httpbl4osc Version 1.1.0 4. QTpro for osc 2.3 5. Header Tags SEO V 3.0 (For 2.3) 6. DHTML State Selection for 2.3.1 And Good To Know: I use a 960gs fluid style sheet. I do have a honey pot on my website. Store Version: 2.3 “Pain is temporary. Quitting lasts forever." - Lance Armstrong Link to comment Share on other sites More sharing options...
kingjohn Posted July 17, 2011 Share Posted July 17, 2011 /catalog/checkout_process.php Yes I am also trying to Add the customers Phone Number to the Order Email. Can I edit these PHP files in Dreamweaver, or should I have another application? Link to comment Share on other sites More sharing options...
demastermind Posted July 19, 2011 Author Share Posted July 19, 2011 Yes I am also trying to Add the customers Phone Number to the Order Email. Can I edit these PHP files in Dreamweaver, or should I have another application? I would use Notepad++ in combanation with FileZilla. I use that and the programs work well together. I can download a php or any extention file into Notepad++ directly via FileZilla and then save the file and get the option to upload it right back to the server . I found out how to add the order number to the subject. Post if you need to know how. Does anyone know what is wrong with my email? I dont know enought to figure it out. Thanks. (But I am learning... slowly) My Installed Contributions: 1. Ultimate SEO URLs V 2-2.2d-X 2. Quantity Box on Product Info Page 3. httpbl4osc Version 1.1.0 4. QTpro for osc 2.3 5. Header Tags SEO V 3.0 (For 2.3) 6. DHTML State Selection for 2.3.1 And Good To Know: I use a 960gs fluid style sheet. I do have a honey pot on my website. Store Version: 2.3 “Pain is temporary. Quitting lasts forever." - Lance Armstrong Link to comment Share on other sites More sharing options...
panicgripdesigns Posted July 20, 2011 Share Posted July 20, 2011 Yes I am also trying to Add the customers Phone Number to the Order Email. Can I edit these PHP files in Dreamweaver, or should I have another application? Dreamweaver should work, but make sure to be only workin in the Code portion. That's how I used to develop my site for a LONG time before I switched to PhpDesigner Here's my modification: 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\n\nCustomer Instant Contact Info\n" . $order->customer['email_address'] ."\n". $order->customer['telephone'] . "\n"; } I added: . "\n\n\nCustomer Instant Contact Info\n" . $order->customer['email_address'] ."\n". $order->customer['telephone'] . "\n" \n means New Line, like a <br /> but for a pliantext email. Feel free to use HTML. and on the subject: $new_mail_subject = EMAIL_TEXT_SUBJECT . ' - ' . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id; and the result: Subject: Order Process - TBolt USA LLC - Number: 8207 Company Name ------------------------------------------------------ Number: 8207 Detailed Invoice: https://www.domain.com/store/account_history_info.php?order_id=2735 Date Ordered: Monday 08 February, 2010 Products ------------------------------------------------------ 1 x .SPECIAL ORDERS (Special Order) = $1.00 ------------------------------------------------------ Sub-Total: $1.00 Flat Rate (Best Way): $5.00 6% Pennsylvania Sales Tax: $0.06 Total: $6.06 Delivery Address ------------------------------------------------------ Customer Name 123 W Maple Ave Langhorne, PA 19020 United States Customer Instant Contact Info [email protected] 215-757-0123 Billing Address ------------------------------------------------------ Customer Name 123 W Maple Ave Langhorne, PA 1902 Payment Method ------------------------------------------------------ PayPal Express Checkout A little knowledge of php goes a long way. Link to comment Share on other sites More sharing options...
hellescape Posted July 22, 2011 Share Posted July 22, 2011 i have a question about this file..after the checkout process could be sent different email to costumer and different to me=(admin) for example i need to add the manufacturer field of the product only to mail that is being sent to me. Link to comment Share on other sites More sharing options...
demastermind Posted July 27, 2011 Author Share Posted July 27, 2011 i have a question about this file..after the checkout process could be sent different email to costumer and different to me=(admin) for example i need to add the manufacturer field of the product only to mail that is being sent to me. What version do you have? And I do not know how to change that, but if you need an email that needs to be sent to another admin WITHOUT the order total of sometiing of that nature, I can help you with that IF you have osc 2.3 My Installed Contributions: 1. Ultimate SEO URLs V 2-2.2d-X 2. Quantity Box on Product Info Page 3. httpbl4osc Version 1.1.0 4. QTpro for osc 2.3 5. Header Tags SEO V 3.0 (For 2.3) 6. DHTML State Selection for 2.3.1 And Good To Know: I use a 960gs fluid style sheet. I do have a honey pot on my website. Store Version: 2.3 “Pain is temporary. Quitting lasts forever." - Lance Armstrong Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.