How To Add Newly Added Fields To Filters Menu
Submitted by Rocket32 on Sat, 2009-05-23 21:32.Price Tapestry
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.
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.
--
Developer, Price Tapestry
General PHP, MySQL and Affiliate Marketing tech help for Price Tapestry customers at davidmorison.com