Adding new column in Sales Order View Items in Magento Admin

前端 未结 6 1716
难免孤独
难免孤独 2021-02-06 17:12

In the admin interface of Magento I need to modify the tables in the Sales / Order / View order so that it shows, besides the products name, their manufacturer as well.

6条回答
  •  自闭症患者
    2021-02-06 17:40

    After quite a lot of browsing through the code and with some help from a collegue, we found out the two file to change for adding a column to such view:

    • app/design/adminhtml/default/default/template/sales/order/view/items.phtml for adding the table header

    • app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml for filling the column with data.

    I'm not really experienced with Magento but I guess that, in order to do a "clean job", one should not directly modify those files but override them instead.

    EDIT

    • app/design/adminhtml/default/default/template/downloadable/sales/order/view/items/renderer/downloadable.phtml for filling the column with data for downloadable products.

提交回复
热议问题