我目前正在尝试在产品订单中添加一个新列,当您创建一个新货件(adminhtml/blocks/sales/order/shipment/create 区域)并且已经用各种不同的方式打击了我一段时间指南。我尝试更改 item.phtml 和 form.phtml,但收效甚微。
我能够更改表单块本身(form.php),但这对产品列表的更深层次的核心帮助不大。我希望每个产品都有一个制造商属性的列,但我很高兴只有一个列显示在它应该出现的位置。
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>