<p class="subtotal">
<?php if ($this->canApplyMsrp()): ?>
<span class="map-cart-sidebar-total"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></span>
<?php else: ?>
<span class="label"><?php echo $this->__('Cart Subtotal :') ?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
<!-- start Display cart weight -->
<br />
<br />
<?php if($_SERVER["HTTP_X_REAL_IP"] == "127.0.0.1"):?> <?php endif; ?> <!-- Restrict by Ip Address -->
<?php $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
$weight = 0;
foreach($items as $item)
{
$weight += ($item->getWeight() * $item->getQty()) ;
}
echo "Cart Weight : ".$weight."KG";
?>
<!-- end Display cart weight -->
<?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>
<br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
<?php endif; ?>
<?php endif; ?>
</p>