Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by scdesigns

  1. scdesigns

    [Contribution] U HTML Emails

    Ok, so I've spent the last two days trying to get UHTML to work properly with my PayPal IPN, and finally i have succeeded. For those still fighting with it and can't get certain information to display (eg. customer name, order number, address etc), note the comment line in ipn.php that reads: // $order variables have been changed from checkout_process to work with the variables from the function query () instead of cart () in the order class First follow the instructions in a previous post by grgr here Then open your newly created checkout_process_paypal.php and edit the variables that are causing trouble. Here are the correct variables to use (in my version of IPN anyway...) ORDER NUMBER Find all instances of $insert_id And replace with $_POST['invoice'] CUSTOMER NAME Find . $order->customer['firstname'] . ' ' . $order->customer['lastname']. And replace with . $order->customer['name']. ADDRESSES Find . tep_address_label($customer_id, $sendto, 0, '', '<br />') . Replace with . tep_address_format($order->delivery['format_id'], $order->delivery, 0, '', '<br />') . Find . tep_address_label($customer_id, $billto, 0, '', '<br />') . Replace with . tep_address_format($order->billing['format_id'], $order->billing, 0, '', '<br />') . I think i've covered everything.. I hope this saves some time for those either just starting to modify the contrib or those who have been pulling their hair out like me! Cheers, Dave