<?php if($toStep == "billing" || $toStep == "shipping" || $toStep == "payment"): ?>
<div class="orderSummary">
<?php
$session= Mage::getSingleton('checkout/session');
//echo "<pre>";
foreach($session->getQuote()->getAllItems() as $item)
{ ?>
<div class="orderRow">
<div class="leftSpan"><?php echo $productname = $item->getName();?></div>
<div class="rightSpan"><?php echo Mage::helper('core')->currency($item->getPrice())?></div>
</div>
<?php } ?>
<div class="total">Total</div>
<?php
$totals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals();
$subtotal = $totals["subtotal"]->getValue();
echo Mage::helper('core')->currency($subtotal);
?>
</div>
</div>
<div class="orderRow">
<input type="submit" value="Click to continue">
</div>
</div>
</div>
<?php endif; ?>
<div class="orderSummary">
<?php
$session= Mage::getSingleton('checkout/session');
//echo "<pre>";
foreach($session->getQuote()->getAllItems() as $item)
{ ?>
<div class="orderRow">
<div class="leftSpan"><?php echo $productname = $item->getName();?></div>
<div class="rightSpan"><?php echo Mage::helper('core')->currency($item->getPrice())?></div>
</div>
<?php } ?>
<div class="total">Total</div>
<?php
$totals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals();
$subtotal = $totals["subtotal"]->getValue();
echo Mage::helper('core')->currency($subtotal);
?>
</div>
</div>
<div class="orderRow">
<input type="submit" value="Click to continue">
</div>
</div>
</div>
<?php endif; ?>
Comments
Post a Comment
Feel Free To Ask...