2013-12-17 5 views
2

에서 사용자 지정 송장 데이터 추가이 송장 이메일에 대한 내 이메일 템플릿 파일입니다 :이 html 파일로 주문 ID를 전달하는 방법을 이해하지송장 이메일

\wamp\www\magento\app\locale\en_US\template\email\sales\invoice_new.html 
<td> 
<h2 style="font-size:18px; font-weight:normal; margin:0;">Your Invoice #{{var invoice.increment_id}} for Order #{{var 
order.increment_id}}</h2> 
</td> 

가.

{{var invoice.increment_id}} from where this varible pass in this html file?? 
{{var order.getShippingAddress().getTelephone()}} where is written this function in magento ? 

이 변수를 사용하여 magento 테이블에서 더 많은 데이터를 얻으려면 함수를 만들고 싶습니다. 그래서이 함수를 어디에 추가해야합니까? invoice_new.html 파일에서이 함수를 호출하는 방법은 무엇입니까?

답변

1

변수는 Mage_Sales_Model_Order_Invoice::sendEmail()으로 설정됩니다.

$mailer->setTemplateParams(array(
      'order'  => $order, 
      'invoice'  => $this, 
      'comment'  => $comment, 
      'billing'  => $order->getBillingAddress(), 
      'payment_html' => $paymentBlockHtml 
     ) 
    ); 

당신은 추가 할 수 있습니다 자신의 데이터를 같은 방법 : 이 코드를 참조하십시오.