0

I need to get the full collection, with adminhtml grid filters applied, but without the grid pagination

I've tried several things, for instance...

$this->getCollection()->clear()->setPageSize(false)->load();

But I am getting always the paginated collection

Any tips?

1

Finally I got this working, with following code

$this->getCollection()->getSelect()->reset(Zend_Db_Select::LIMIT_COUNT);
$this->getCollection()->getSelect()->reset(Zend_Db_Select::LIMIT_OFFSET);
$this->getCollection()->clear()->setPageSize(false)->load();

Credits for Jürgen Thelen

https://stackoverflow.com/questions/12041177/magento-get-all-products-from-a-product-collection-ignoring-the-set-limits

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.