You are here:  » View Filters

Support Forum



View Filters

Submitted by kend on Mon, 2007-06-18 21:01 in

Hi,

On the filters page we can see a table with the filter, config, and delete columns.

The only way to see the filter is to click on the config link. But then you must click on the back button to examine another filter, and it's too easy to forget or lose track of configurations.

The problem is when 50+ filters are set up per merchant, it's looks very difficult to keep track of all the filters. One option is to download a CSV of the filters table, but that takes a few clicks plus the waiting time. (The configuration description is a blob and not viewable on phpmyadmin).

I was wondering how difficult it would be to print out the filter details alongside the filter configuration tool? It looks like it might be possible by modifying feedsfilters.php but I'm hesitant to mess around with it unless I know what might be involved.

Any pointers? Has this been tried before? I haven't found anything on the forum.

Thanks!

Submitted by support on Mon, 2007-06-18 21:34

Hi,

Yes - it will be possible to do something. What i'll do is write a version of feeds_filters.php that displays filter data on the first page rather than having to select a filter to view the config and email it to you. You can then let me know how well the layout works on your site with 50+ feeds and provide any feedback etc. I'll email something for you to try tomorrow...

Cheers,
David.

Submitted by kend on Tue, 2007-06-19 03:40

Thanks David!

That will be a big help, because I use search replace very often and i can't quite see at a glance which replacements have already been implemented per merchant. Oh, and in case there's any confusion, above I was referring to 50+ filters per merchant, and not 50+ feeds.

On the same subject, I was wondering if it's possible to bulk change the filter table (export/import from Excel)?

The following codes don't have an obvious meaning to me, and also, I'm not sure if the "created" field is tied to something else.
a:2:{s:6:"search";s:25:"My Product Name";s:7:"replace";s:14:"My New Product Name";}

Perhaps bulk filter changing is more trouble than it's worth. Any thoughts on that?

-Ken.

Submitted by support on Tue, 2007-06-19 08:20

Hello Ken,

I've just emailed you a new version of admin/feeds_filters.php to try which will display the current config of each filter on the main filters page, in a table using a smaller font to improve the layout. The changes are straight forward, so for the benefit of other users who may want to make a similar modification, first look for the following code (line 87 in the distribution):

    print "<th>Field</th>";

...and add the following code immediately AFTERWARDS:

    print "<th>Settings</th>";

Then, look for the following code (line 107 in the distribution):

      print "<td>".$fields[$filter["field"]]."</td>";

...and add the following code immediately AFTERWARDS:

      print "<td>";
      $setting = unserialize($filter["data"]);
        print "<table>";
        foreach($setting as $k => $v)
        {
          print "<tr style='font-size:x-small;'>";
          print "<th align='left' width='100'>".$k."</th>";
          print "<td>".$v."</td>";
          print "</tr>";
        }
        print "</table>";
      print "</td>";

The "created" field in the database is relevant because this controls the order in which the filters are applied, as they are applied in the order in which they are created. If you decide to modify the filters table directory in the database, this field would need to be preserved in order to maintain filter order.

Hope this helps!
Cheers,
David.

Submitted by kend on Wed, 2007-06-20 16:45

Hi David,

I just uploaded the file this morning and the output is excellent!

This will be a big help, using Firefox-find, now I can easily search for previous modifications / filters.

Thank you!