Jump to content

Custom Boolean Field To Product List View Filter


gfstudio

Recommended Posts

Hi there,

as in obj i'm trying to add a custom boolean field to products list view.

 

I managed in everything thanks to the helper class but i've got an issue.

 

Only when i set the field as boolean the filtered value is not set as selected so the reset btn is not showing up.

Without bool typr everything is ok filtering by 0 or 1 "manually".

 

Here is my code

 

 $this->fields_list['flag'] = array(
            'title' => $this->l('flag'),
            'filter_key' => 'a!flag',
            'class' => 'fixed-width-sm text-center',
            'orderby' => false,
            'type' => 'bool',
            'active'   => 'flag',
        );

 

Thank you in advance for any usefull answer ;-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...