Hi
i need help on deleting and use a field i get from datafeed.
it has advertisercategory like this:
ADVERTISERCATEGORY clothes> Men> blue jeans
So i need to make a filter only to ue the latest sub category, like this: blue jeans
now if i use that field from the feed, im getting: clothesMenblue jeans
Hi,
What you want is the "Explode" filter from this post:
http://www.pricetapestry.com/node/2017#comment-8036
However, before it can be used, you will also need to make a small change to includes/admin.php to permit the > character in the category field. To do this, look for the following code on line 166:
$importRecord["category"] = tapestry_normalise($importRecord["category"]);
...and REPLACE with:
$importRecord["category"] = tapestry_normalise($importRecord["category"],">");
With that modification, and the Explode filter code added to your includes/filter.php, you can then add a new Explode filter to your category field and enter ">" as the Explode Character or String (without the quotes), and -1 as the return index - which will return the last value in the list...
Hope this helps!
Cheers,
David.