Showing results for 
Search instead for 
Did you mean: 

getCollection - add Custom Filter


getCollection - add Custom Filter


I need on backend, to add a custom filter on manage customers. The customers registered on frontend have a custom field called 'seller_code' on account information,
i need to filter by that field.

The code from backend that fill up the grid is:
<?php foreach ($this->getCollection() as $_index=>$_item): ?>

Can I add this custom field to getCollection like a filter?


Re: getCollection - add Custom Filter

Hi Alex.


This is not the way to do it.

It can be achieved by in a none intrusive way using observers. Rather than me repeat the contents of a good article on this, you are better off reading it yourself.




Problem solved? Click Accept as Solution! | Magento Small Business Partner

Re: getCollection - add Custom Filter

Hi @Alex Stefan,


This can help you:

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions :