I had problems but I got there in the end - of course, my problems may not be the same as yours.
This is what I have done (I think!):
/catalog/includes/modules/payment/
edit paypal_standard.php
find around line 560
//------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";
}
and under this insert:
// lets start with the email confirmation
//--- Beginning of addition: Ultimate HTML Emails ---//
if (EMAIL_USE_HTML == 'true') {
require(DIR_WS_MODULES . 'UHtmlEmails/'. ULTIMATE_HTML_EMAIL_LAYOUT .'/checkout_process_paypal.php');
$email_order = $html_email;
}else{//Send text email
//--- End of addition: Ultimate HTML Emails ---//
find this at around line 620:
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);
}
and ABOVE it insert this:
//--- Beginning of addition: Ultimate HTML Emails ---//
}
if(ULTIMATE_HTML_EMAIL_DEVELOPMENT_MODE === 'true'){
//Save the contents of the generated html email to the harddrive in .htm file. This can be practical when developing a new layout.
$TheFileName = 'Last_mail_from_checkout_process.php.htm';
$TheFileHandle = fopen($TheFileName, 'w') or die("can't open error log file");
fwrite($TheFileHandle, $email_order);
fclose($TheFileHandle);
}
//--- End of addition: Ultimate HTML Emails ---//
close and save this now.
Goto /public_html/catalog/includes/modules/UHtmlEmails/xxxxxxx/
where xxxxx is the template folder you are using.
create a duplicate of checkout_process and call it 'checkout_process_paypal.php'
open the file and change line 15:
require(DIR_WS_LANGUAGES . $language . '/modules/UHtmlEmails/Standard/checkout_process.php');
change to :
require(DIR_WS_LANGUAGES . 'english/modules/UHtmlEmails/Standard/checkout_process.php');
Seems to be working OK for me at the moment, I've gone through checkout quite a few times now with no problems that I know of yet.
Don't ask me how or why it works, it just works for me.