Pour mon module personnalisé, j'ai un produit par fabricant. Pour le modèle que j'ai copié list.phtml.
Sur le fichier modèle, la pagination apparaît mais elle montre tous les produits au lieu de la limite sélectionnée par page. Le tri ne fonctionne pas trop.
Comment puis-je le faire fonctionner ??
C'est mon fichier de blocage:
protected function _getProductCollection()
{
if (is_null($this->_productCollection)) {
$layer = $this->getLayer();
$brand_id = $this->getRequest()->getParam('id');
$collection = Mage::getModel('catalog/product')->getCollection();
$collection->addAttributeToSelect('*');
$collection->addFieldToFilter(array(
array('attribute' => 'manufacturer', 'eq' => $brand_id)
));
}
return $collection;
}