/** * Added predefined ids support */ public function getCount() { $ids = $this->getProductIds(); if (!empty($ids)) { return count($ids); } return parent::getCount(); }