We have a few categories which function like "bestsellers" categories; these categories can hold any number of products, but I'd like to show only the top four.
So I figured to create an observer with the
catalog_block_product_list_collection event and try to limit it. The observer triggers fine on the category pages, but whatever I try the collection isn't limited;
$limitedCollection = $observer->getEvent()->getCollection(); $limitedCollection->getSelect()->limit(4); return $this;
$limitedCollection = $observer->getEvent()->getCollection(); $limitedCollection->setPageSize(4)->setCurPage(1); return $this;
Neither have any effect. What am I missing? Edit: It's also important that the search/layered navigation etc functionality sees only 4 products.