[Typo3-shop] no products in ###email_plaintext_template###

Franz Holzinger franz at fholzinger.com
Tue Sep 13 07:43:30 CEST 2005


function finalizeOrder($orderUid, $orderConfirmationHTML)	{

...


if (count($recipients))	{	// If any recipients, then compile and send
the mail.
	$emailContent=trim($this->getBasket('###EMAIL_PLAINTEXT_TEMPLATE###'));
	if ($emailContent)	{		// If there is plain text content - which is
required!!
		$parts = split(chr(10),$emailContent,2);		// First line is subject
		$subject=trim($parts[0]);
		$plain_message=trim($parts[1]);

		$cls  = t3lib_div::makeInstanceClassName('tx_ttproducts_htmlmail');
		if (class_exists($cls) && $this->conf['orderEmail_htmlmail'])	{	// If
htmlmail lib is included, then generate a nice HTML-email


...

				} else {		// ... else just plain text...
					// $headers variable überall entfernt!
					$this->send_mail($this->personInfo['email'], $subject,
$plain_message, $this->conf['orderEmail_from'],
$this->conf['orderEmail_fromName'], $this->conf['AGBattachment']);
					if ($this->conf['generateCSV'])
						$addcsv = $csvfilepath;
					else
						$addcsv = '';
					$this->send_mail($this->conf['orderEmail_to'], $subject,
$plain_message, $this->personInfo['email'], $this->personInfo['name'],
$addcsv);
				}


....
}



More information about the TYPO3-project-tt-products mailing list