You are here:  » How To Add Newly Added Fields To Filters Menu

Support Forum



How To Add Newly Added Fields To Filters Menu

Submitted by Rocket32 on Sat, 2009-05-23 21:32 in

How would I add a newly added sku field into the filters for example search and replace on the sku field? The only fields listed are the original fields in the filters.

Submitted by support on Mon, 2009-05-25 10:33

Hi,

This just requires a new line added to both admin/feeds_filters.php and admin/feeds_filters_configure.php. In each file, search for the following line:

if ($feed["field_price"]) $fields[$feed["field_price"]] = "Price (".$feed["field_price"].")";

...and add similar lines on the next line for each new field that you wish to include, so keeping the tariff example, you would add:

if ($feed["field_tariff"]) $fields[$feed["field_tariff"]] = "Tariff (".$feed["field_tariff"].")";

Cheers,
David.