Hello,
We use a theme for magento and it’s only display one range on the homepage. We would like to know how to display 2 or 3 range on this homepage, here is my website :
www.harneyshop.com
How to display 2 or 3 range of products under the “Produit à la une” title. Here is the part of the code which generate that in the new.phtml :
<table cellspacing=”0″ class=”generic-product-grid” id=”new-products-list-table”>
<tr>
<?php $i=0; foreach ($_products->getItems() as $_product): ?>
<?php if ($i>=5): continue; endif; ?>
<td>
<p class=”product-image”>
<a href=”<?php echo $_product->getProductUrl() ?>” title=”<?php echo $this->htmlEscape($_product->getName()) ?>”><img src=”<?php echo $this->helper(‘catalog/image’)->init($_product, ‘small_image’)->resize(120) ?>” width=”120″ height=”120″ alt=”<?php echo $this->htmlEscape($_product->getName()) ?>” /></a>
</p>
<p class=”product-name-p”><a class=”product-name” href=”<?php echo $_product->getProductUrl() ?>” title=”<?php echo $this->htmlEscape($_product->getName()) ?>)”><?php echo $this->htmlEscape($_product->getName()) ?></a></p>
<?php echo $this->getReviewsSummaryHtml($_product, ‘short’) ?>
<?php echo $this->getPriceHtml($_product, true, ‘-new’) ?>
<?php if($_product->isSaleable()): ?>
<a href=”<?php echo $this->getAddToCartUrl($_product) ?>” class=”shop-now” style=”margin:0 auto;”>Buy Now</a>
<?php else: ?>
<div class=”out-of-stock”><?php echo $this->__(‘Out of stock’) ?></div>
<?php endif; ?>
<div class=”clear”></div>
<?php /*?><ul class=”add-to”>
<?php if ($this->helper(‘wishlist’)->isAllow()) : ?>
<li><a href=”<?php echo $this->getAddToWishlistUrl($_product) ?>” class=”link-cart”><?php echo $this->__(‘Add to Wishlist’) ?></a></li>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<li><a href=”<?php echo $_compareUrl ?>”><?php echo $this->__(‘Add to Compare’) ?></a></li>
<?php endif; ?>
</ul><?php */?>
</td>
<?php $i++; endforeach; ?>
<?php for($i;$i%5!=0;$i++): ?>
<td> </td>
<?php endfor ?>
</tr>
</table>
Thank you.
Greetings,
LC
