public function _toHtml() { $sContent = ''; $aCustomAtrrList = $this->getOrderCustomData(); if ($aCustomAtrrList) { $sContent .= '<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <THEAD> <TR> <TH style="' . Mage::getStoreConfig('aitcheckoutfields/email_settings/aitcheckoutfields_email_TheadTrThStyle', $this->getStoreId()) . '" align=left width="100%" bgColor=#EAEAEA>' . Mage::getStoreConfig('aitcheckoutfields/email_settings/aitcheckoutfields_email_label', $this->getStoreId()) . '</TH></TR></THEAD> <TBODY> <TR> <TD style="' . Mage::getStoreConfig('aitcheckoutfields/email_settings/aitcheckoutfields_email_TbodyTrTdStyle', $this->getStoreId()) . '" vAlign=top>'; foreach ($aCustomAtrrList as $aItem) { if ($aItem['value']) { $sContent .= '<b>' . $aItem['label'] . ':</b> ' . Mage::helper('core')->escapeHtml($aItem['value']) . '<br>'; } } $sContent .= '</TD></TR></TBODY></TABLE><BR />'; } $sContent .= parent::_toHtml(); return $sContent; }
public function _toHtml() { $html = parent::_toHtml(); $fileIds = array(); $order = $this->getOrder(); foreach ($order->getAllItems() as $item) { $ids = Mage::getResourceSingleton('downloads/relation')->getFileIds($item->getProductId()); $fileIds = array_merge($fileIds, $ids); } $fileIds = array_unique($fileIds); $files = Mage::getResourceModel('downloads/files_collection'); $files->addResetFilter()->addFilesFilter($fileIds)->addStatusFilter()->addCategoryStatusFilter()->addStoreFilter()->addSortOrder(); if (!$files->count()) { return $html; } $filesBlock = $this->getLayout()->createBlock('downloads/link', 'downloads', array('ids' => $fileIds, 'is_email' => 1)); $html .= $filesBlock->toHtml(); return $html; }
public function _toHtml() { $this->setTemplate('aw_points/email/order/items.phtml'); return parent::_toHtml(); }
protected function _toHtml() { $emailBlock = $this->getLayout()->createBlock('amorderattr/fields_email'); $emailBlock->setOrder($this->getOrder()); return $emailBlock->toHtml() . parent::_toHtml(); }