Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order Status - Emails Sent to customer


Amadeuss

Recommended Posts

Posted

Hello.

I've been looking everywhere and if such thing exists, I may have overlooked, but I was wondering where can I edit those emails sent to a customer whenever an Admin changes his order status.

 

For example : Edit Order -> comments (empty) choose Processing from drop-down.

Customer receives email i.E. Dear customer, your order has been updated to processing.

 

Help Anyone?

Thank you in advance!

 

P.S. I am not talking about the email that is sent whenever a customer places an order or registers. Although it would be nice to know what to edit for all emails.

Posted

The code:

 

/admin/orders.php

 

		  if (isset($HTTP_POST_VARS['notify']) && ($HTTP_POST_VARS['notify'] == 'on')) {
		$notify_comments = '';
		if (isset($HTTP_POST_VARS['notify_comments']) && ($HTTP_POST_VARS['notify_comments'] == 'on')) {
		  $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n";
		}

		$email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

		tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

		$customer_notified = '1';
	  }

The constants are in the language files.

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 >

Posted

Unfortunatelly I used to search in includes and stuff.

Thank you very much ! It was a newbie question but hopefully it would help others as well.

  • 1 month later...
Posted

Can someone post the actual postion of where the email text is? I looked in language.php in admin and i couldn't see anything but code. I find it immensly frustrating as there must be god knows how many language files in at least half a dozen locations. I just want to change the text rec'd by customers in a couple of emails:

 

namely

 

the 'welcome' email

and the email a customer rec's when i change the status to 'sent'

 

thank you

Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Archived

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

×
×
  • Create New...