for the paypal receipt, find the following code on the pp_confirm.php page:
$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$siteCart->DisplayInfo("Name") ."";
and change it to:
$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$siteCart->DisplayInfo("productName") ."";
for the receipt on your page, the order number does not show because of code order.
The email code block is at lines 433 - 521 of the pp_confirm.php page 522 - 635 is the code block for storing the order information in the database. The order ID is created by the store order summary behavior. The email code block needs to be moved to line 635 so it happens after the order is saved to the database and the ID is created.
The spaces between the description and the options are happening because you have each block in a separate paragraph in the email message.
the code for the name dfescription and options in the email is:
$MailBody = $MailBody . "<p style=\"font-weight:bold; margin:0 0 2px 0;\"><strong>";
$MailBody = $MailBody . $siteCart->DisplayInfo("Name");
$MailBody = $MailBody . "</strong></span></p>\r\n";
$MailBody = $MailBody . "<p style=\"margin:0 0 2px 0;\"><strong>Description:</strong> ";
$MailBody = $MailBody . $siteCart->DisplayInfo("Description");
$MailBody = $MailBody . "</span></p>\r\n";
$MailBody = $MailBody . "<p style=\"margin:0 0 2px 0;\">";
$Color = $siteCart->DisplayInfo("Color");
$MailBody = $MailBody . "";
if ( $Color == "") $MailBody = $MailBody . ""; else $MailBody = $MailBody . "<strong>Color:</strong> $Color ";
$MailBody = $MailBody . "</span></p>\r\n";
$MailBody = $MailBody . "<p style=\"margin:0 0 2px 0;\">";
$Size = $siteCart->DisplayInfo("Size");
$MailBody = $MailBody . "";
if ( $Size == "") $MailBody = $MailBody . ""; else $MailBody = $MailBody . "<strong>Size:</strong> $Size";
$MailBody = $MailBody . "</span></p>\r\n";
change that to:
$MailBody = $MailBody . "<p style=\"font-weight:bold; margin:0 0 2px 0;\"><strong>";
$MailBody = $MailBody . $siteCart->DisplayInfo("Name");
$MailBody = $MailBody . "</strong></span></p>\r\n";
$MailBody = $MailBody . "<strong>Description:</strong> ";
$MailBody = $MailBody . $siteCart->DisplayInfo("Description");
$MailBody = $MailBody . "</span>\r\n";
$MailBody = $MailBody . "";
$Color = $siteCart->DisplayInfo("Color");
$MailBody = $MailBody . "";
if ( $Color == "") $MailBody = $MailBody . ""; else $MailBody = $MailBody . "<strong>Color:</strong> $Color ";
$MailBody = $MailBody . "</span>\r\n";
$MailBody = $MailBody . "";
$Size = $siteCart->DisplayInfo("Size");
$MailBody = $MailBody . "";
if ( $Size == "") $MailBody = $MailBody . ""; else $MailBody = $MailBody . "<strong>Size:</strong> $Size";
$MailBody = $MailBody . "</span></p>\r\n";
So that only one paragraph is used.