크레디미모 전자 메일에서 {{var invoice.increment_id}}를 어떻게 사용할 수 있습니까? 그렇게하면 작동하지 않습니다 ...Magento - 거래 전자 메일 - 변수
<p><strong>Bestellnummer:</strong> {{var order.increment_id}}</p>
<p><strong>Datum:</strong> {{var creditmemo.created_at}}</p>
<p><strong>Rechnung:</strong> {{var invoice.increment_id}}</p>
<p>Liebe(r) {{htmlescape var=$order.getCustomerName()}},<br/><br/>
작동하지 않습니다. 누군가 나에 대한 힌트를 가지고 있습니까? 감사!
편집
맞습니까? 편집 클래스 Mage_Sales_Model_Order_Creditmemo 및 추가 :
//Get Invocie from order Object
if ($order->hasInvoices()) {
// "$_eachInvoice" is each of the Invoice object of the order "$order"
foreach ($order->getInvoiceCollection() as $_eachInvoice) {
$invoice = $_eachInvoice->getIncrementId();
}
//$invoice = $order->getInvoiceCollection();
}
aswell
$mailer->setTemplateParams(array(
'order' => $order,
'creditmemo' => $this,
'comment' => $comment,
'invoice' => $invoice,
'billing' => $order->getBillingAddress()
)
);
로, 그 후 내 이메일 템플릿 변수 {{var에 송장을}} 호출?
그러나 여기에 표시되지 않는 내용은 무엇입니까?
시도해보십시오! 감사 – Marek123