in the magento admin panel, if we go for Orders section
and if we click on one order, we can see the Product name and sku at the bottom.
i want to add 2 more attributes to the order section.
please help me to find solution.
thanks in advance.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
You didn't specify the Magento version but here is the solution for CE 126.96.36.199 (might also work for others):
The product name and SKU are output in
app/design/adminhtml/default/default/template/sales/items/column/name.phtml. You will find a variable
$_item which is an object of the class
If you want to output data which is saved in the order item, you can directly use the order item:
<?php echo $this->escapeHtml($_item->getSomeValue()) ?>
If you need data which is only saved in the product itself, you can get the product and echo its value:
<?php echo $_item->getProduct()->getDescription(); ?>
Be aware that the same template is used for other pages like the invoice, shipment page and so on and there may be different templates for other product types.