Display total weight in admin view order

There are times when you may want to see the total order weight for determining best shipping method etc.

To display  “total order weight xx Lbs” under the “Placed from IP” line in the order information block, make the following change:


OPEN: app/design/adminhtml/default/default/sales/order/view/info.phtml

(TEMPLATE is usually default unless you’ve made changes)

around line 88, add the following code:

<?php if($_order->getRemoteIp() && $this->shouldDisplayCustomerIp()): ?>
<td class="label"><label><?php echo Mage::helper('sales')->__('Placed from IP') ?></label></td>
<td class="value"><strong><?php echo $_order->getRemoteIp(); echo ($_order->getXForwardedFor())?' (' . $this->escapeHtml($_order->getXForwardedFor()) . ')':''; ?></strong></td>
<?php endif; ?>

<!-- added info below -->
<td class="label"><?php echo Mage::helper('sales')->__('Total Order Weight') ?></td>
<td class="value"><strong><?php echo round($_order->getWeight(),1); echo " Lbs"; ?></strong></td>
<!-- END -->
<?php if($_order->getGlobalCurrencyCode() != $_order->getBaseCurrencyCode()): ?>
<td class="label"><label><?php echo Mage::helper('sales')->__('%s / %s rate:', $_order->getGlobalCurrencyCode(), $_order->getBaseCurrencyCode()) ?></label></td>
<td class="value"><strong><?php echo $_order->getBaseToGlobalRate() ?></strong></td>
<?php endif; ?>


  1. By Huigre

Leave a Reply