I remember I wanted this myself as well in Admin overview so I decided to look into this.
To enable filtering on 'Expired' items you need to change two core files!
If you're interested you can make the following CORE changes (remember this thread in case your core files get overwritten with next update):
File1: /oc-admin/themes/modern/items/index.phpPaste the following code on line 280 right after the "form-row" of "b_spam" html:
<!-- By SmaRTeY - 23-05-2015: Added option for filtering expired items in Admin -->
<div class="form-row">
<div class="form-label">
<?php _e('Expired'); ?>
</div>
<div class="form-controls">
<select id="b_expired" name="b_expired">
<option value="" <?php echo ( (Params::getParam('b_expired') == '') ? 'selected="selected"' : '' )?>><?php _e('Choose an option'); ?></option>
<option value="1" <?php echo ( (Params::getParam('b_expired') == '1') ? 'selected="selected"' : '' )?>><?php _e('ON'); ?></option>
<option value="0" <?php echo ( (Params::getParam('b_expired') == '0') ? 'selected="selected"' : '' )?>><?php _e('OFF'); ?></option>
</select>
</div>
</div>
File2: /oc-includes/osclass/classes/datatables/ItemsDataTable.phpOn line 465 you should see the end "}" of the b_spam routine, after this code paste the following code to create the filter:
//By SmaRTeY - 23-05-2015 Adding filter for expired items in Admin
if($k == 'b_expired' && $v != '') {
$this->mSearch->addItemConditions(DB_TABLE_PREFIX.'t_item.dt_expiration < now()');
$this->withFilters = true;
}
Make sure this added code is pasted between the 'b_spam' and the 'user' routines.
Okay, with these changes save both files, make sure your cache is empty and enjoy your new filter in Admin on Expired Items
Regards,
Eric