You are here:  » Pre-Filtering of feed content

Support Forum



Pre-Filtering of feed content

Submitted by mojiton on Fri, 2008-11-28 09:23 in

Hi, is there any possibility to filter out products out of the data feed while parsing it?

If have f.e. a huge "Condor flight offers" product feed with all destinations (>30mb), but need online flights in my product data, which contain the keyword "Las Palmas" or "Gran Canaria"

Thanks for any idea

Submitted by support on Fri, 2008-11-28 09:36

Hello,

Yes - you can do this with the "Drop Record (If Not) RegExp" filter. You can add this filter to either the Product Name or Description field (click "Filters" alongside the feed on the admin home page, then select the filter type and field and click "Add"), and then in the regular expression box, enter:

(Las Palmas|Gran Canaria)

When importing again, only records with those keywords will be imported.

Hope this helps!

Cheers,
David.

Submitted by HJW on Fri, 2008-12-05 17:07

Hi David,

I wanted to try this, however I don't seem to have a filter "Drop Record (If Not) RegExp" only "Drop Record" or am I doing something wrong?

Any help would be much appreciated.

Kind regards

Hayden

Submitted by support on Sat, 2008-12-06 10:01

Hello Kayden,

The Drop Record (If Not) RegExp filter was added quite recently. You could just take the latest version from the distribution and upload it over the top of your existing file; or if you have modified your includes/filter.php already and just wanted to add this filter, you'll find the code in this thread...

http://www.pricetapestry.com/node/1551

Cheers,
David.

Submitted by HJW on Sat, 2008-12-06 10:37

Thanks David
Once again excellent help.

Kind Regards
Hayden