chrometweaks.org

What good and cheap iPage web hosting company should I get?

Click Here To View All Answers...


First of all What good and cheap iPage web hosting company should I get? Thanks in advance for any answer or 2. My other question... Hello,.

I am trying to add an own text in the order notification message which is sent to the customer after ordering..

I would like to add a line saying something like, "thank you very much for your order"..

I thought it would be a simple task to do but I have failed sofar..

In checkout_process.php, I've found the text that seems necessary to change. However, when I add a line, no changes occur to the email notification that is automatically sent out when a customer place an order..

Please see the attached printing of checkout_php..

If there is anyone who could help me shed a light on this item I would be very happy and send my best wished and thanks to that person..

Is there anywhere else than checkout_process_php that I need to change as well in order to make it work? Please let me know what's wrong.....

Thank you very much in advance for your help..

Best Regards,.

/Bjorn.

ORIGINAL VERSION OF CHECKOUT_PROCESSS.PHP.

<?php.

/*.

$Id: checkout_process.php,v 1.26 2002/11/01 04:22:05 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2002 osCommerce.

Released under the GNU General Public License.

*/.

Define('EMAIL_TEXT_SUBJECT', 'Order Process');.

Define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');.

Define('EMAIL_TEXT_INVOICE_URL', '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');.

Define('EMAIL_SEPARATOR', '');.

Define('TEXT_EMAIL_VIA', 'via');.

?>.

CHANGED VERSION BY ME OF CHECKOUT_PROCESS.PHP (DOES NOT WORK).

<?php.

/*.

$Id: checkout_process.php,v 1.26 2002/11/01 04:22:05 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2002 osCommerce.

Released under the GNU General Public License.

*/.

Define('EMAIL_TEXT_SUBJECT', 'Order Process');.

Define('EMAIL_TEXT', Hello, here is an order confirmation automatically sent to you based on your order. Please check the information to make sure all information is correct. <b>Please do not hesitate to contact us if you have any further questions. Thank you very much for your order. </b><b>Yours Sincerely, </b> <b>Your personal webshop</b>');.

Define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');.

Define('EMAIL_TEXT_INVOICE_URL', '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');.

Define('EMAIL_SEPARATOR', '');.

Define('TEXT_EMAIL_VIA', 'via');.

?>..

Comments (30)

I'm stumped. I'm not so sure what is the right answer. I'll do some investigation and get back to you if I discover an useful answer. You should email the people at iPage as they probably could assist you..

Comment #1

Hi Bjorn,.

You also need to edit the checkout-process.php file in the /catalog. You've only edited the english language file by defining a new variable which osC knows nothing about. If you open the catalog/checkout-process.php file and find :.

// 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";.

You can see how he email is constructed. It starts off with the STORE_NAME, followed by a separator which is ''followed by the order number and the href of the invoice for the order. By the sound of that you want you would like this at the top of your email. So edit the above code to this :.

// lets start with the email confirmation.

 $email_order = [COLOR=red]EMAIL_TEXT [/COLOR]. "\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";.

Hope this helps..

Regards.

PhilipH..

Comment #2

Hi PhilipH,.

Thank you very much for your advice. I posted the files exactly as you adviced me to, but it does not work..

I get below message..

Parse error: parse error, unexpected '[' in /customers/mydomain.se/mydomain.se/httpd.www/catalog/checkout_process.php on line 223.

When trying the advice from MzBeanz I get the same error message but then on line 224..

What is wrong?.

If you could give me futher assistance, I would be very happy..

Best Regards,.

/Bjorn..

Comment #3

$email_order = "[color=red]"EMAIL_TEXT" [/color]\n" ..

This post has been edited by.

Wizardsandwars.

: 24 September 2004, 12:44..

Comment #4

Dear PhilipH and all the other of you..

I've solved the problem..

First it did not work for me, but then I added the same line just beneath the first e-mail separator and guess what...it all worked fine for me. No error messages anymore..

Instead of just add EMAIL_TEXT, which propably caused some conflict, I added "EMAIL_TEXT_INDIVIDUAL" and of course, I had to make the same corresponding changes in the language depended files..

Thank you all good guys for your support. I am all happy and I will sleep very good tonight..

Best Regards,.

/Bjorn..

Comment #5

Dear All, PhilipH and other readers and supporters,.

It works now, but I found out one more question..

The e-mail is sent out, but I would like it to look somewhat better than now..

I would like to decide where to start a new sentence on a new row, like a break or something..

I tried with <b> ......</b> as you do when coding html...I saw a similar string like that in other standard e-maild. But now matter how I change, the text is not put in lines the way I want..

Do you know how to fix this?.

Thanks again and again for your great support..

Best Regards,.

/Bjorn..

Comment #6

Dear MzBeanz,.

Thank you very much for your advice. I was able to change it succesfully..

This was regarding the order notification that is automatically sent to the customer after placing an order..

I want to make similar changes to the e-mail notification that is sent out to a customer after I have processed or shipped his order..

After handling an order in the administration section, an update of the order status is sent..

I guess it should be as easy to change this file, but where can I find the files needed to change?.

I ask you since I assume that you maybe have changed your e-mail notification on that part too..

Hoping for the best for an answer from you..

Thank you very much in advance..

Best Regards,.

/Bjorn..

Comment #7

Hello,.

I am trying to add an own text in the order notification message which is sent to the customer after ordering..

I would like to add a line saying something like, "thank you very much for your order"..

I thought it would be a simple task to do but I have failed sofar..

In checkout_process.php, I've found the text that seems necessary to change. However, when I add a line, no changes occur to the email notification that is automatically sent out when a customer place an order..

Please see the attached printing of checkout_php..

If there is anyone who could help me shed a light on this item I would be very happy and send my best wished and thanks to that person..

Is there anywhere else than checkout_process_php that I need to change as well in order to make it work? Please let me know what's wrong.....

Thank you very much in advance for your help..

Best Regards,.

/Bjorn.

ORIGINAL VERSION OF CHECKOUT_PROCESSS.PHP.

<?php.

/*.

$Id: checkout_process.php,v 1.26 2002/11/01 04:22:05 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2002 osCommerce.

Released under the GNU General Public License.

*/.

Define('EMAIL_TEXT_SUBJECT', 'Order Process');.

Define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');.

Define('EMAIL_TEXT_INVOICE_URL', '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');.

Define('EMAIL_SEPARATOR', '');.

Define('TEXT_EMAIL_VIA', 'via');.

?>.

CHANGED VERSION BY ME OF CHECKOUT_PROCESS.PHP (DOES NOT WORK).

<?php.

/*.

$Id: checkout_process.php,v 1.26 2002/11/01 04:22:05 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2002 osCommerce.

Released under the GNU General Public License.

*/.

Define('EMAIL_TEXT_SUBJECT', 'Order Process');.

Define('EMAIL_TEXT', Hello, here is an order confirmation automatically sent to you based on your order. Please check the information to make sure all information is correct. <b>Please do not hesitate to contact us if you have any further questions. Thank you very much for your order. </b><b>Yours Sincerely, </b> <b>Your personal webshop</b>');.

Define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');.

Define('EMAIL_TEXT_INVOICE_URL', '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');.

Define('EMAIL_SEPARATOR', '');.

Define('TEXT_EMAIL_VIA', 'via');.

?>..

Comment #8

I can help you with this.... I altered all my email... looking for my notes....

In this file:.

Catalog/checkout_process.php.

Go to this line (aprox line 225 in my file).

// lets start with the email confirmation.

$email_order = STORE_NAME"\r" ..

Add after it this for an extra message:.

// additional text message.

$email_order .= "We appreciate your business and hope that you enjoy the items you ordered. Happy Scrapin!\n\n" ..

// end of additional text message.

Let me know is you need more help.

This post has been edited by.

MzBeanz.

: 22 September 2004, 22:10..

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.