Blocks:products List By Selected Multiple Categories

my cs-cart version 3



I’m trying to filter products by category in blocks::products::filling newest



open file sc-cart directoy :: schemas :: block_manager :: fillings.php



added this code


<br />
		 'cid' => array (<br />
			 'type' => 'picker',<br />
			 'option_name' => 'filter_by_categories',<br />
			 'picker' => 'pickers/categories_picker.tpl',<br />
			 'picker_params' => array(<br />
					 'multiple' => true,<br />
					 'use_keys' => 'N',<br />
					 'view_mode' => 'table',<br />
					 'no_item_text' => fn_get_lang_var('default_filter_by_location'),<br />
			 ),<br />
			 'unset_empty' => true, // remove this parameter from params list if the value is empty<br />
		 ),<br />

```<br />
<br />
under<br />
<br />
```php
<br />
$schema = array (<br />
'manual' => array (<br />
  'type' => 'picker',<br />
),<br />
'newest' => array (<br />
  'period' => array (<br />
   'type' => 'selectbox',<br />
   'values' => array (<br />
    'A' => 'any_date',<br />
    'D' => 'today',<br />
    'HC' => 'last_days',<br />
   ),<br />
   'default_value' => 'any_date'<br />
  ),<br />
  'last_days' => array (<br />
   'type' => 'input',<br />
   'default_value' => 1<br />
  ),<br />
  'limit' => array (<br />
   'type' => 'input',<br />
   'default_value' => 3<br />
  ),<br />

```<br />
<br />
work only for "ONE" category selected. if my need is "multiple" selected any particular categories to filter products!?<br />
<br />
thanks, help me! <img src="upload://6NsJ1i6dTEz64hX1nsujb3m2ygK.gif" class="bbc_emoticon" alt=":confused:">