I fail in adding a custom choice filter, like ‘brand-filter’ to frontend-product-dearch-grid:
First a tried to add a new filter type choice to datagrids.frontend-product-search-grid.filters-node:PHP12345678910111213141516171819# MyShoppingListBundle/Resources/config/oro/datagrids.yml##datagrids:frontend-product-search-grid:filters:columns:owner:type: stringdata_name: ownertype: choicedata_name: ownerlabel: oro.business_owner.name.labeloptions:field_options:multiple: truechoices: '@custom.provider.business_owner_product_filter_choice->getList'##
The exception message is something like ‘no type choice allowed’.
I tried to find, how brand-choice-filter was added in oro-core bundles. It is definitely not set as params in datagrids.yml, but in some higher layer …?
The only hint I have got is, that oro/platform/…/FilterBundle/Filter/ChoiceFilter.php has to be used.
But how to integrate it into frontemd-datagrid, I could nor find out.
Thanks a lot.
The forum ‘OroCommerce’ is closed to new topics and replies.