I have a feed which has a good few hundred categories of which I only want to import 3 or 4
I know I can use drop record for the categories I dont require, but this involves a tedious process of adding hundreds of filters
I was just wondering if there was a way to select only the categories you wish to import, rather than the current way of selecting the ones you dont?
Thanks
Phillip
Thats great David - thanks for your reply (especially on a BHM)
It works Ok except when used on categories produces a page full of:
Warning: strpos(): Empty delimiter. in /home/twoboys/public_html/includes/filter.php on line 36
line 36 is:
$filter_dropRecordFlag = (strpos($filter_data["text"],$text) === FALSE);
But does import the correct items
That presumably happens on empty categories... You can prevent the warning by preceeding strpos with @, like this:
$filter_dropRecordFlag = (@strpos($filter_data["text"],$text) === FALSE);
Cheers,
David.
That's sorted it - many thanks for your help - this little bit of code will save me hours of tedious work
Cheers David
Hi Phillip,
This came up not so long ago - i've written code for another filter called "Selective Import" which is basically the opposite of the drop record filter. Instructions are in this thread:
http://www.pricetapestry.com/node/400
Hope this helps!
Cheers,
David.