op www. sextoys18.nl staat, als je naar een categorie gaat, links een lijst met populaire producten.
echter is deze lijst te lang.
populair.phtml word hier getoont(zit in de template) zie hieronder de code hiervan:
<?php
/**
* Product list template
*
* @see Mage_Catalog_Block_Product_List
*/
?>
<?php
$_productCollection=$this->getLoadedProductCollection()
?>
<?php
if($_productCollection->count()): ?>
<div class="block block-popular">
<div class="block-title">
<strong><span><?php echo $this->__('Most Popular')?></span></strong>
</div>
<div class="block-content">
<?php $_iterator = 0; ?>
<ol class="mini-products-list" id="block-popular">
<?php foreach($_productCollection as $_item): ?>
<li class="item">
<div class="product">
<a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
<div class="product-details">
<p class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></p>
<?php echo $this->getPriceHtml($_item, true, '-related') ?>
</div>
</div>
</li>
<?php endforeach ?>
</ol>
</div>
</div>
<?php endif; ?>
Hoe kan ik het aantal producten dat getoont word bepalen?
- magento vraag
-
04-02-2011, 10:08 #1
- Berichten
- 1.092
- Lid sinds
- 16 Jaar
magento vraag
-
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic