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:

total_weight

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()): ?>
<tr>
<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>
</tr>
<?php endif; ?>

<!-- added info below -->
<tr>
<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>
</tr>
<!-- END -->
<?php if($_order->getGlobalCurrencyCode() != $_order->getBaseCurrencyCode()): ?>
<tr>
<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>
</tr>
<?php endif; ?>

Comments

  1. By Huigre

Leave a Reply