Thursday, December 5, 2013

Magento: Add additional product/item attributes in order, invoice and shippment View Information (Admin End)

To add below code in /app/design/Adminhtml/default/default/template/sales/items/column/name.phtml


 "

 <?php 
echo $Author = Mage::getModel('catalog/product')->load($_item['product_id'])->getData('author') 

?>

"
 -------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------

<?php if ($_item = $this->getItem()): ?>
    <h5 class="title"><span id="order_item_<?php echo $_item->getId() ?>_title"><?php echo $this->htmlEscape($_item->getName()) ?></span></h5>
    <div><strong><?php echo $this->helper('sales')->__('SKU') ?>:</strong> <?php echo implode('<br />', Mage::helper('catalog')->splitSku($this->htmlEscape($this->getSku()))); ?>
<?php echo "<p><b>Author:</b>&nbsp;"; ?>
 <?php echo $Author = Mage::getModel('catalog/product')->load($_item['product_id'])->getData('author') ?>
<?php echo "</p>"; ?>

<?php echo "<p><b>Publisher:</b>&nbsp;"; ?>
 <?php echo $Author = Mage::getModel('catalog/product')->load($_item['product_id'])->getData('publishers') ?>
<?php echo "</p>"; ?>

<?php echo "<p><b>Published Year:</b>&nbsp;"; ?>
 <?php echo $Author = Mage::getModel('catalog/product')->load($_item['product_id'])->getData('publication_year') ?>
<?php echo "</p>"; ?>

<?php echo "<p><b>Edition:</b>&nbsp;"; ?>
 <?php echo $Author = Mage::getModel('catalog/product')->load($_item['product_id'])->getData('edition') ?>
<?php echo "</p>"; ?>

<?php echo "<p><b>Language:</b>&nbsp;"; ?>
 <?php echo $Author = Mage::getModel('catalog/product')->load($_item['product_id'])->getData('language') ?>
<?php echo "</p>"; ?>

<?php echo "<p><b>ISBN 10:</b>&nbsp;"; ?>
 <?php echo $Author = Mage::getModel('catalog/product')->load($_item['product_id'])->getData('isbn10') ?>
<?php echo "</p>"; ?>


<?php echo "<p><b>ISBN 13:</b>&nbsp;"; ?>
 <?php echo $Author = Mage::getModel('catalog/product')->load($_item['product_id'])->getData('isbn13') ?>
<?php echo "</p>"; ?>


</div>

No comments:

Post a Comment