Display Best selling product in magento store

Display Best selling product in magento store

</pre>
<?php $_productCollection=$this--->getLoadedProductCollection() ?>

<?php if(!$_productCollection--->count()): ?>

<?php else: ?--></pre>

<div><?php $_collectionSize = $_productCollection--->count() ?>

&nbsp;

<script type="text/javascript">// <![CDATA[

mce:0

// ]]></script>

<table border="0" cellspacing="0">

<tbody><?php $i=0; foreach ($_productCollection as $_product): ?--> <?php if($i++%2==0): ?-->

<tr><?php endif; ?-->

<td><a href="<?php echo $_product->getProductUrl() ?>"> <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(95, 95); ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" width="95" height="95" /> </a>

<div>

&nbsp;

<?php echo $this--->getPriceHtml($_product, true) ?>

<?php if($_product--->getRatingSummary()): ?>

<?php echo $this--->getReviewsSummaryHtml($_product, 'short') ?>

<?php endif; ?-->

<?php echo nl2br($_product--->getShortDescription()) ?></div></td>

<?php if($i%2==0 || $i==$_collectionSize): ?--></tr>

<?php endif; ?--> <?php endforeach ?--></tbody>

</table>

</div>

<pre>

<?php endif; //$_productCollection--->count() ?>
<pre>

Leave a Reply

Your email address will not be published. Required fields are marked *