SimpleSi,
I am having the sample problem as you with getting the contrib to work with PayPal IPN. After researching this forum and no finding a direct answer, I found that by applying the following changes to the ipn.php file located in catalog/ext/modules/payment/paypal_ipn/ipn.php.
Find:
$email_order = STORE_NAME . "\n" .
Insert this on the line above:
// 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);
The line $order = new order($insert_id); may not be necessary. I added from another mod, I think. Just delete it if it doesn't work for you.
Find:
tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
Insert this on the line above:
//--- 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 ---//
This will generate the HTML email when the paypal ipn is used for checkout, however I'm now having a problem getting my order number to display. If any has an idea of why this is happening, I'm all ears. Also note that I am using PayPal IPN v2.3.3.
Thanks,
Walt