Magento - 如何在管理中添加列到产品列表创建新的运输?

时间:2013-05-31 01:19:38

标签: xml magento adminhtml

我正在尝试在产品订单中添加新列,当您创建新货件(adminhtml / blocks / sales / order / shipment / create区域)并且已经打了一会儿,与各种不同的指南。我试图改变item.phtml和form.phtml,但收效甚微。

我能够更改表单块本身(form.php),但这对产品列表的更深层核心没什么帮助。我希望每个产品都有一个列为其制造商属性,但我很高兴只有一个列显示它应该在哪里。

1 个答案:

答案 0 :(得分:0)

You can refer below xml there are two path block and template either my creating new files or editing same you can get result


app\design\adminhtml\default\default\layout\sales.xml
<block type="adminhtml/sales_order_view_items" name="order_items" template="sales/order/view/items.phtml">
    <action method="addItemRender"><type>default</type><block>adminhtml/sales_order_view_items_renderer_default</block><template>sales/order/view/items/renderer/default.phtml</template></action>
    <action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
    <action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
    <action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name_grouped</block><template>sales/items/column/name.phtml</template><type>grouped</type></action>
    <block type="core/text_list" name="order_item_extra_info" />
</block>