Post by rocket » Tue Nov 01, 2011 10:35 pm

After a few trials trying to get a simple fix working to show just the Customer Name and Email Address in the sales confirmation order email, I have the solution below.

You only need to edit 2 files (maybe able to do in 1, but this is how I got it to work)

File 1
catalog/model/checkout/order.php
After these lines:

Code: Select all

// Admin Alert Mail
			if ($this->config->get('config_alert_mail')) {
				$subject = sprintf($language->get('text_new_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);
				
				// Text 
				$text  = $language->get('text_new_received') . "\n\n";
				$text .= $language->get('text_new_order_id') . ' ' . $order_id . "\n";
				
Add this:

Code: Select all

$text .= $language->get('text_new_customer') . ' ' . $order_info['payment_firstname']. ' ' . $order_info['payment_lastname'] . "\n";
				$text .= $language->get('text_new_email') . ' ' . $order_info['email'] . "\n";		
File 2
catalog/language/english/mail/order.php
After this line:

Code: Select all

$_['text_new_ip']  		= 'IP Address:';
Add this:

Code: Select all

$_['text_new_customer']  	= 'Customer:';

User avatar
New member

Posts

Joined
Sat Oct 22, 2011 12:09 am

Post by jimaras » Tue Nov 15, 2011 6:31 am

thank you!!

http://e-kreopoleio.com/


Active Member

Posts

Joined
Thu Sep 15, 2011 1:45 am
Who is online

Users browsing this forum: No registered users and 42 guests