Jump to content



Photo
* * * - - 2 votes

[Contribution] U HTML Emails


  • Please log in to reply
244 replies to this topic

#81   bizkit1

bizkit1
  • Members
  • 6 posts
  • Real Name:FLorin

Posted 10 September 2008 - 19:15

and every mail sent, newsletter, tell a friend...they are all broken.

#82   bizkit1

bizkit1
  • Members
  • 6 posts
  • Real Name:FLorin

Posted 12 September 2008 - 18:10

Help?

#83   hardball

hardball
  • Members
  • 3 posts
  • Real Name:Hardball

Posted 18 September 2008 - 10:22

Forget it, already figured it out!


Maybe you can help others, I get the error:

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXISTS(SELECT * FROM uhtml_newsletters_sent WHERE customers_id=

SELECT c.customers_id, c.customers_firstname, c.customers_lastname, c.customers_email_address FROM customers c WHERE customers_newsletter = '1' AND NOT EXISTS(SELECT * FROM uhtml_newsletters_sent WHERE customers_id=c.customers_id AND newsletters_id='3') LIMIT 10

I have been up for three days, so I am not all together with it at this point. Any help would be appreciated.

#84   mosoft

mosoft
  • Members
  • 22 posts
  • Real Name:Anton Moser

Posted 22 September 2008 - 17:06

Hi Olov,

I've installed the contrib some days ago and meanwhile I just love it ;o)
But still I think there's something to do: You've added the gender greeting in version 2.1 - but only in create_account.
What I miss is a gender greeting for checkout_process and for admin notifications in orders.
I just checked if this was easy to be realized by myself - but it seems to be more difficult there.
Another point I'm thinking of is: Wouldn't it be more comfortable to let customers chose, whether they'd prefer HTML or plain text mails and save this setting in their personal settings ?

Thanks for your suggestions anyway,

Anton

#85   Amrahp

Amrahp
  • Members
  • 74 posts
  • Real Name:John

Posted 23 September 2008 - 07:43

Hi Olof,

Awesome contribution! Many thanks!

A question: When sending customers automatic email (create_account, orders etc) everything works fine.
When sending newletters though is the html code sent in its pure form and the newsletter mail look like this:

<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body style="margin: 0px; padding: 0px; background-color:#edf6ff;"><font face="Times New Roman, Times, serif"><table width="100%" height="75px" border="0" background..............................border-color: #F96861;background-color:#FFFFFF;">Newsletter test text here.</div></font></body></html>


Any thoughts on why this happens?

Kind regards!

#86   hardball

hardball
  • Members
  • 3 posts
  • Real Name:Hardball

Posted 24 September 2008 - 22:06

Hi Olof,

Awesome contribution! Many thanks!

A question: When sending customers automatic email (create_account, orders etc) everything works fine.
When sending newletters though is the html code sent in its pure form and the newsletter mail look like this:

<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body style="margin: 0px; padding: 0px; background-color:#edf6ff;"><font face="Times New Roman, Times, serif"><table width="100%" height="75px" border="0" background..............................border-color: #F96861;background-color:#FFFFFF;">Newsletter test text here.</div></font></body></html>


Any thoughts on why this happens?

Kind regards!


If I read your question properly, you need to be of the understanding that the newsletter editor strips all html characters from what you typed so to speak, and leaves you with purely what you type, brackets included.

All HTML is generated prior to the editing of the contents. In other words, it will not send HTML form your editor, it sends it in HTML form, of which you edit through the newsletter.php script.

Is this close to answering you?

#87   hardball

hardball
  • Members
  • 3 posts
  • Real Name:Hardball

Posted 25 September 2008 - 09:27

Maybe you can help others, I get the error:

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXISTS(SELECT * FROM uhtml_newsletters_sent WHERE customers_id=

SELECT c.customers_id, c.customers_firstname, c.customers_lastname, c.customers_email_address FROM customers c WHERE customers_newsletter = '1' AND NOT EXISTS(SELECT * FROM uhtml_newsletters_sent WHERE customers_id=c.customers_id AND newsletters_id='3') LIMIT 10

I have been up for three days, so I am not all together with it at this point. Any help would be appreciated.



Ok, after much toying around I finally decided that I should put something into the created database table for the mod. Everything works wonderfully now.

If you get this error, it probably means that the database table did not get any information inserted into it during the SQL installation.

All things come to those who wait. Or mess with stuff till they figure it out. Or break things and put them back together again. Or...

#88   keithwilliams

keithwilliams
  • Members
  • 98 posts
  • Real Name:Keith Williams
  • Gender:Male

Posted 25 September 2008 - 18:20

Hiya,

Sorry to trouble you with what must be an easy addition for most, but with me being a complete dunce, I just can't quite work it out!

What I'd like is to add the customers email address & telephone at the bottom, next to the address details.

I've edited the forest green 'checkout_process.php file and managed to add another column with a title, but can't see how to insert the email & telephone details.

I've pasted the changes I've made below in the hope you could help me out???

Many thanks,
Keith

$html_email .='<table style="font-size:14px; font-family:\'times\';" border="0" cellpadding="3" cellspacing="2" bgcolor=white>
			<tr style="background-color:#87A44C; color:#FFFFFF; font-weight:bold;">';
				if ($order->content_type != 'virtual') {
					$html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_DELIVERY_ADDRESS .'</font></td>';
				}
				$html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_BILLING_ADDRESS .'</font></td>';
				$html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_EMAIL_TELEPHONE .'</font></td>
			</tr>
			<tr style="background-color:#DDDDDD;">';
				if ($order->content_type != 'virtual') {
					$html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $sendto, 0, '', '<br />') .'</font></td>';
				}
				$html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $billto, 0, '', '<br />') .'</font></td>';
	
				
				$html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $email_subject, 0, '', '<br />') .'</font></td>';
				
				$html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $telephone, 0, '', '<br />') .'</font></td>
			</tr>
		</table>
		';


In life, try everything three times...
First, just to see if you like it.
A Second, to see if you were mistaken the first,
And a third, to see if you tire of it quickly...


#89   mosoft

mosoft
  • Members
  • 22 posts
  • Real Name:Anton Moser

Posted 26 September 2008 - 05:51

Hiya,

Sorry to trouble you with what must be an easy addition for most, but with me being a complete dunce, I just can't quite work it out!

What I'd like is to add the customers email address & telephone at the bottom, next to the address details.

I've edited the forest green 'checkout_process.php file and managed to add another column with a title, but can't see how to insert the email & telephone details.

I've pasted the changes I've made below in the hope you could help me out???

Many thanks,
Keith

$html_email .='<table style="font-size:14px; font-family:\'times\';" border="0" cellpadding="3" cellspacing="2" bgcolor=white>
			<tr style="background-color:#87A44C; color:#FFFFFF; font-weight:bold;">';
				if ($order->content_type != 'virtual') {
					$html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_DELIVERY_ADDRESS .'</font></td>';
				}
				$html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_BILLING_ADDRESS .'</font></td>';
				$html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_EMAIL_TELEPHONE .'</font></td>
			</tr>
			<tr style="background-color:#DDDDDD;">';
				if ($order->content_type != 'virtual') {
					$html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $sendto, 0, '', '<br />') .'</font></td>';
				}
				$html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $billto, 0, '', '<br />') .'</font></td>';
	
				
				$html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $email_subject, 0, '', '<br />') .'</font></td>';
				
				$html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $telephone, 0, '', '<br />') .'</font></td>
			</tr>
		</table>
		';

Hi Keith,
I've added both Email and Phone number with this code:
<td>' .UHE_TEXT_EMAIL .'<br>' .$order->customer['email_address'] . '<br>' . UHE_TEXT_TELEPHONE .'<br>' .$order->customer['telephone']. '
and it works fine.

Anton

#90   Amrahp

Amrahp
  • Members
  • 74 posts
  • Real Name:John

Posted 26 September 2008 - 08:11

If I read your question properly, you need to be of the understanding that the newsletter editor strips all html characters from what you typed so to speak, and leaves you with purely what you type, brackets included.

All HTML is generated prior to the editing of the contents. In other words, it will not send HTML form your editor, it sends it in HTML form, of which you edit through the newsletter.php script.

Is this close to answering you?


Many thanks for your answer hardball!

I'm not sure if I follow you all the way though. "..of which you edit through the newsletter.php script."
Do you talk about: mydomain.com/admin/newsletters.php?
I have tried non html code as well as html code here. Both mails come out as plain code... /blink.gif' class='bbc_emoticon' alt=':blink:' /> /blink.gif' class='bbc_emoticon' alt=':blink:' />

In simple words: How and where do I edit my newsletter code?

#91   keithwilliams

keithwilliams
  • Members
  • 98 posts
  • Real Name:Keith Williams
  • Gender:Male

Posted 26 September 2008 - 12:47

Hiya Anton,

Many thanks for your reply.
Used your bit of code and it's perfect - just what I wanted!

Kind Regards
Keith

In life, try everything three times...
First, just to see if you like it.
A Second, to see if you were mistaken the first,
And a third, to see if you tire of it quickly...


#92   keithwilliams

keithwilliams
  • Members
  • 98 posts
  • Real Name:Keith Williams
  • Gender:Male

Posted 26 September 2008 - 15:04

Just when I thought all was well...

Seems I have the same problem as others in this thread where I get plain text emails when paying by PayPal.
I'm using the version of PayPal Standard as supplied with osCommerce RC2a
Tried the fix posted earlier in this thread:

//---  Beginning of addition: Ultimate HTML Emails  ---//
if (EMAIL_USE_HTML == 'true') {	require(DIR_WS_MODULES . 'UHtmlEmails/checkout_process_'. ULTIMATE_HTML_EMAIL_LAYOUT .'.php');	$email_order = $html_email;}else  //Send text email
//---  End of addition: Ultimate HTML Emails  ---//

but get errors when returning from Paypal:

Warning: paypal_standard::require(includes/modules/UHtmlEmails/checkout_process_Forest Green.php) [function.paypal-standard-require]: failed to open stream: No such file or directory in /home/xxxx/xxxx/includes/modules/payment/paypal_standard.php on line 504

Warning: paypal_standard::require(includes/modules/UHtmlEmails/checkout_process_Forest Green.php) [function.paypal-standard-require]: failed to open stream: No such file or directory in /home/xxxx/xxxx/includes/modules/payment/paypal_standard.php on line 504

Fatal error: paypal_standard::require() [function.require]: Failed opening required 'includes/modules/UHtmlEmails/checkout_process_Forest Green.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/xxxx/includes/modules/payment/paypal_standard.php on line 504

The HTML emails look so good I'd really like to use them so i was wondering if anybody has got this working with the PayPal Standard module included with RC2a? If anyone has, please could you let me know how it's done? (be gentle, I'm a coding dummy!)
Many Thanks
Keith

In life, try everything three times...
First, just to see if you like it.
A Second, to see if you were mistaken the first,
And a third, to see if you tire of it quickly...


#93   jhande

jhande
  • Members
  • 2,236 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:Keene, NH USA

Posted 02 October 2008 - 14:45

Hey Keith,

Could you post the code from -
/home/xxxx/xxxx/includes/modules/payment/paypal_standard.php on line 504
A few lines before and after might help.

I'm not using RC2a but might be able to figure something out once I see the code.
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

#94   keithwilliams

keithwilliams
  • Members
  • 98 posts
  • Real Name:Keith Williams
  • Gender:Male

Posted 02 October 2008 - 15:36

Hiya Jim,

Thanks for getting back to me.

What I did was to copy the code from earlier in this thread (on pg2)...

// EOF content type fix by AlexStudio// $order variables have been changed from checkout_process to work with the variables from the function query () instead of cart () in the order class//---  Beginning of addition: Ultimate HTML Emails  ---//if (EMAIL_USE_HTML == 'true') {	require(DIR_WS_MODULES . 'UHtmlEmails/checkout_process_'. ULTIMATE_HTML_EMAIL_LAYOUT .'.php');	$email_order = $html_email;}else{//Send text email//---  End of addition: Ultimate HTML Emails  ---//		  $order = new order($insert_id);

... and inserted it where I think the email generation starts in paypal_standard.php (from RC2a)...

//------insert customer choosen option eof ----
		$total_weight += ($order->products[$i]['qty'] * $order->products[$i]['weight']);
		$total_tax += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty'];
		$total_cost += $total_products_price;

		$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";
	  }

// lets start with the email confirmation
	  $email_order = STORE_NAME . "\n" .
					 EMAIL_SEPARATOR . "\n" .
					 EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" .
					 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $order_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);

// send emails to other people
	  if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
		tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
	  }

// load the after_process function from the payment modules
	  $this->after_process();

	  $cart->reset(true);

// unregister session variables used during checkout
	  tep_session_unregister('sendto');
	  tep_session_unregister('billto');
	  tep_session_unregister('shipping');
	  tep_session_unregister('payment');
	  tep_session_unregister('comments');

So from line 501
// lets start with the email confirmation
to line 539
tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

was deleted and replaced with the "Beginning of addition: Ultimate HTML Emails" code at the top. I assumed this would redirect the email generation to Ultimate HTML, but no email was sent and the errors appeared when returning from paypal.

I'm not able to write any of my own code or anything more than very basic html, but have a logical approach and am good at copying & pasting other experts code! (and yes - I backup before I do anything!)

So, any help & pointers you can give me would be greatly appreciated

Kind Regards
Keith

In life, try everything three times...
First, just to see if you like it.
A Second, to see if you were mistaken the first,
And a third, to see if you tire of it quickly...


#95   jhande

jhande
  • Members
  • 2,236 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:Keene, NH USA

Posted 03 October 2008 - 15:50

Hiya Jim,

Thanks for getting back to me.

What I did was to copy the code from earlier in this thread (on pg2)...

// EOF content type fix by AlexStudio// $order variables have been changed from checkout_process to work with the variables from the function query () instead of cart () in the order class//---  Beginning of addition: Ultimate HTML Emails  ---//if (EMAIL_USE_HTML == 'true') {	require(DIR_WS_MODULES . 'UHtmlEmails/checkout_process_'. ULTIMATE_HTML_EMAIL_LAYOUT .'.php');	$email_order = $html_email;}else{//Send text email//---  End of addition: Ultimate HTML Emails  ---//		  $order = new order($insert_id);

... and inserted it where I think the email generation starts in paypal_standard.php (from RC2a)...


Hey Keith, first a word of warning - I don't really know PHP, I just trial & error hack until I either fix it or give up. /dry.gif' class='bbc_emoticon' alt='<_<' />

First off, there is an error in your pasted code above. It should look like this -

//--- Beginning of addition: Ultimate HTML Emails ---//
if (EMAIL_USE_HTML == 'true') {
require(DIR_WS_MODULES . 'UHtmlEmails/'. ULTIMATE_HTML_EMAIL_LAYOUT .'/checkout_process.php');
$email_order = $html_email;
}else{//Send text email
//--- End of addition: Ultimate HTML Emails ---//

I read through the post on page two, I get the impression that would fix the emails being sent to the store owner and not the customer. But I could be wrong! I haven't gotten to the point of testing my site yet by completing a purchase through PayPal myself to see if I have a similar problem.

I just looked through my paypal.php and paypal_ipn.php files and found nothing calling for sending emails.
Did the email functions work properly prior to installing UHTML Emails?
Have you tried setting up your PayPal account to return customers to your site after completion? I wonder if that would activate an email???

// lets start with the email confirmation
	  $email_order = STORE_NAME . "\n" .
					 EMAIL_SEPARATOR . "\n" .
					 EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" .
					 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $order_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);

// send emails to other people
	  if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
		tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
	  }

// load the after_process function from the payment modules
	  $this->after_process();

	  $cart->reset(true);


I wonder what would happen if one of these changes were made? -

// load the after_process function from the payment modules
$this->after_process();
$email_order = $html_email;
$cart->reset(true);

or not deleting anything and try adding -

//--- Beginning of addition: Ultimate HTML Emails ---//
if (EMAIL_USE_HTML == 'true') {
require(DIR_WS_MODULES . 'UHtmlEmails/'. ULTIMATE_HTML_EMAIL_LAYOUT .'/checkout_process.php');
$email_order = $html_email;
}else{//Send text email
//--- End of addition: Ultimate HTML Emails ---//

After -
// lets start with the email confirmation

Or before -
// load the after_process function from the payment modules

Just some thoughts. /huh.gif' class='bbc_emoticon' alt=':huh:' />
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

#96   keithwilliams

keithwilliams
  • Members
  • 98 posts
  • Real Name:Keith Williams
  • Gender:Male

Posted 04 October 2008 - 08:43

Hey Keith, first a word of warning - I don't really know PHP, I just trial & error hack until I either fix it or give up. /dry.gif' class='bbc_emoticon' alt='<_<' />

First off, there is an error in your pasted code above. It should look like this -

//--- Beginning of addition: Ultimate HTML Emails ---//
if (EMAIL_USE_HTML == 'true') {
require(DIR_WS_MODULES . 'UHtmlEmails/'. ULTIMATE_HTML_EMAIL_LAYOUT .'/checkout_process.php');
$email_order = $html_email;
}else{//Send text email
//--- End of addition: Ultimate HTML Emails ---//

I read through the post on page two, I get the impression that would fix the emails being sent to the store owner and not the customer. But I could be wrong! I haven't gotten to the point of testing my site yet by completing a purchase through PayPal myself to see if I have a similar problem.

I just looked through my paypal.php and paypal_ipn.php files and found nothing calling for sending emails.
Did the email functions work properly prior to installing UHTML Emails?
Have you tried setting up your PayPal account to return customers to your site after completion? I wonder if that would activate an email???



I wonder what would happen if one of these changes were made? -

// load the after_process function from the payment modules
$this->after_process();
$email_order = $html_email;
$cart->reset(true);

or not deleting anything and try adding -

//--- Beginning of addition: Ultimate HTML Emails ---//
if (EMAIL_USE_HTML == 'true') {
require(DIR_WS_MODULES . 'UHtmlEmails/'. ULTIMATE_HTML_EMAIL_LAYOUT .'/checkout_process.php');
$email_order = $html_email;
}else{//Send text email
//--- End of addition: Ultimate HTML Emails ---//

After -
// lets start with the email confirmation

Or before -
// load the after_process function from the payment modules

Just some thoughts. /huh.gif' class='bbc_emoticon' alt=':huh:' />


Hiya Jim,

Many thanks for "your thoughts" - they're very much appreciated.
I always backup everything before I make any changes - I'm sure my php knowledge is far less than yours!
With the paypal_standard.php file in it's original form, the customer receives an order confirmation email & I get a copy, but in plain text (very boring!)

I'll go play with your ideas and let you know what happens

Kind Regards
Keith

In life, try everything three times...
First, just to see if you like it.
A Second, to see if you were mistaken the first,
And a third, to see if you tire of it quickly...


#97   jhande

jhande
  • Members
  • 2,236 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:Keene, NH USA

Posted 08 October 2008 - 04:08

With the paypal_standard.php file in it's original form, the customer receives an order confirmation email & I get a copy, but in plain text (very boring!)


Hey Keith,

Before the addition of U HTML did "any" of your shops emails send as HTML or were they all text?
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

#98   rickeyl

rickeyl
  • Members
  • 106 posts
  • Real Name:Rickey

Posted 13 October 2008 - 10:54

Can anyone tell me how to add this contribution to order_editor_5_0_63? When I update order status to processing or shipped, it notifies the customer but it is in plain text. It does have an html link that works>> Detailed Invoice: order_id=5746
I'm not even sure which file I should be trying to edit.

[codebox]Dear Test Account,

Ricks PC Parts
------------------------------------------------------
Order Number: 5746
Detailed Invoice: order_id=5746
Date Ordered: Saturday 11 October, 2008
------------------------------------------------------


Your order has been updated to the following status: Shipped

If necessary, you may update your order directly by following the link above (login required). If you have questions or comments, please reply to this email.

With warm regards from your friends at Ricks PC Parts[/codebox]

#99   Stitch20

Stitch20
  • Members
  • 4 posts
  • Real Name:Nick

Posted 14 October 2008 - 04:05

Is it possible instead of store name in de email to put your logo in it?
Does anyone know that?
If it's possible where do i put that i tried a couple of thing but it didn't work! /blink.gif' class='bbc_emoticon' alt=':blink:' />

Edited by Stitch20, 14 October 2008 - 04:06.


#100   bito

bito
  • Members
  • 21 posts
  • Real Name:adelino
  • Gender:Male

Posted 14 October 2008 - 08:07

Is it possible instead of store name in de email to put your logo in it?
Does anyone know that?
If it's possible where do i put that i tried a couple of thing but it didn't work! /blink.gif' class='bbc_emoticon' alt=':blink:' />



Hi Nick
I use a logo image with this:
In catalog/includes/languages/modules/UHtmlEmails/Standard/"all files you want" :

define('UHE_GREET_MR', '<a href="http://www.YOURSITE....RSITE.com"><img src=http://www.YOURSITE.com/images/logo.gif width=240 height=92 border=0></a><br /> Exmo(a). Sr(a). %s,');
define('UHE_GREET_MS', '<a href="http://www.YOURSITE....RSITE.com"><img src=http://www.YOURSITE.com/images/logo.gif width=240 height=92 border=0></a><br /> Exmo(a). Sr(a). %s,');
define('UHE_GREET_NONE', '<a href="http://www.YOURSITE....RSITE.com"><img src=http://www.YOURSITE.com/images/logo.gif width=240 height=92 border=0></a><br /> Exmo(a). Sr(a). %s,');

Don't forget customize url's and width and height image settings
/smile.gif' class='bbc_emoticon' alt=':)' />
Adelino