用户下达新订单后,其记录将根据订单增量ID保存在新表中。
现在,我想在发票中显示此记录,并在另一个框中订购电子邮件,如屏幕截图所示。
我该怎么做?
答案 0 :(得分:2)
我在
中添加了以下代码app / design / adminhtml / default / default / template / sales / order / view / tab / Info.phtml
<?php
$collection = Mage::getModel('parentorderreport/parentorderreport')->getCollection();
$collection->addFieldToFilter('main_table.order_id', array('eq' => $_order->getRealOrderId()));
if(count($collection->getItems()))
{
?>
<div class="clear"></div>
<div class="box-left">
<!--Payment Method-->
<div class="entry-edit">
<div class="entry-edit-head">
<h4 class="icon-head head-payment-method"><?php echo Mage::helper('sales')->__('Parent Child Information') ?></h4>
</div>
<fieldset>
<div>
<strong>Student Name:</strong>
<?=$collection->getFirstItem()->getChildName()?>
</div>
<div>
<strong>Grade:</strong>
<?=$collection->getFirstItem()->getGrade()?>
</div>
<div>
<strong>Classroom:</strong>
<?=$collection->getFirstItem()->getClassroom()?>
</div>
<?php
// print_r($collection->getItems());
?>
</fieldset>
</div>
</div>
<div class="clear"></div>
<?php
}
?> </div>
<div class="clear"></div>
<?php
}
?>