Submitted by jamcamuk on Mon, 2007-11-26 22:08 in Price Tapestry
Hi,
Ok am new to this area so please bare with me! Can i take the feeds from the likes of Currys, Dixons, Comet and others like them lets say just for Games Consoles?
Yes - this is doable. Generally, people want to do this where they only want to import products within a certain category (which sounds like what you want to do). It involves adding a new filter to your site called "Drop Record If Not (RegExp)" which allows you to supply a regular expression containing a list of text string to match, and if the field does not contain one of those strings the record will be dropped.
So, in your case for example; after adding the new filter, you would register a feed as normal, and then you could register a new "Drop Record If Not RegExp" filter against the category field, and then provide the following expression in the text box on the configuration page:
(Games Consoles)
...or if there was more than one category you wanted to allow through:
(Games Consoles|Home Entertainment)
(just add additional categories separated by the pipe "|" character)
Alternatively, if one of the feeds you are working with does not have category information, but you can pick-out the games from the product name, you could also use this filter against the product name field, using, for example:
Hi James,
Yes - this is doable. Generally, people want to do this where they only want to import products within a certain category (which sounds like what you want to do). It involves adding a new filter to your site called "Drop Record If Not (RegExp)" which allows you to supply a regular expression containing a list of text string to match, and if the field does not contain one of those strings the record will be dropped.
The code is in the following thread:
http://www.pricetapestry.com/node/1551
So, in your case for example; after adding the new filter, you would register a feed as normal, and then you could register a new "Drop Record If Not RegExp" filter against the category field, and then provide the following expression in the text box on the configuration page:
(Games Consoles)
...or if there was more than one category you wanted to allow through:
(Games Consoles|Home Entertainment)
(just add additional categories separated by the pipe "|" character)
Alternatively, if one of the feeds you are working with does not have category information, but you can pick-out the games from the product name, you could also use this filter against the product name field, using, for example:
(Wii|XBox|PS3)
Hope this helps,
Cheers,
David.