2011-06-08 166 views

回答

1

在Magento的版本。 1.5.1.0.options已经可用。

转到

管理 - >销售 - >订单

查看orders.click特定order.There应该“评论历史”。在这里,您可以添加评论订单

一旦你创建发票去特定的发票。应该有一个“发票历史”。在这里你可以添加你的评论给你的发票。

然后打印发票 如果你愿意在打印自己的意见加入这个article可以帮助你

所有最优秀的

+0

我可以在后端为订单添加评论。问题在于获得打印的发票上显示的具体评论。链接的文章仅显示如何向订单添加属性,但不显示具体的评论。 – a1anm 2011-09-30 14:05:18

1

您需要添加在发票{{VAR评论}},出货或贷项通知单模板。您可以通过转至系统>交易电子邮件来访问Magento 1.5提供的默认模板。

一旦你基于默认创建自己的模板,进入系统>配置>销售电子邮件。选择您刚创建并保存的模板。

{{VAR评论}}为您提供了选项添加注释。无论您输入什么内容,都会在新发票上显示。

希望这是你在问什么。

4
app/code/local/mage/sales/model/order/pdf/invoice.php

而且大多经过Add Total Code

保存它添加以下代码里面public function getPdf 和下载PDF发票....热潮发票评论将会出现在你的PDF ..

/*************************** This Is The Invoice Comments ***********************************/ 

$this->_setFontRegular($page, 10); 

// Begin table header 
$page->setFillColor(new Zend_Pdf_Color_RGB(0.93, 0.92, 0.92)); 
$page->setLineColor(new Zend_Pdf_Color_GrayScale(0.5)); 
$page->setLineWidth(0.5); 
$page->drawRectangle(25, $this->y, 570, $this->y -15); 
$this->y -= 10; 
$page->setFillColor(new Zend_Pdf_Color_RGB(0, 0, 0)); 
// end table header 


$_tempY = $this->y; 

$commentsCollection = $invoice->getCommentsCollection(true); 

$internalcomments = "Internal Invoice Comments"; 
$page->drawText($internalcomments, 35, $this->y, 'UTF-8'); 

$this->y -= 15; 

foreach($commentsCollection as $comm) 
{ 
     $textChunk = wordwrap($comm->getData('comment'), 120, "\n"); 
     foreach(explode("\n", $textChunk) as $textLine){ 
       if ($textLine!=='') { 
         $page->drawText(strip_tags(ltrim($textLine)), 35, $this->y, 'UTF-8'); 
         $this->y -= 15; 
       } 
     } 

} 

/*************************** End Invoice Comments ***********************************/