Hey,
Is there a way for cleaning up this:
{link saved}
All the categories are there, and i find it a bit of a mess.
How can i make this a bit more nicer ?
Maybe there is a solution allready, but to be honest, the forum is in desperate need of a search function ;)
Greetz,
Joep
I'll send you the files..
Haha, never noticed the search box :)
Joep
Hi Joep,
There is a Google site-search box on this page which covers the forum very well:
http://www.pricetapestry.com/forum/
With regards to cleaning up the categories, I see the problem; this is normally what Category Mapping is used for; so you can create a master category name, and then enter all the different and weird versions of that category name on the configuration page. Then, whenever a category with a name in the alternatives box is found (during import), it will be imported with the master category name.
However, I notice on some of yours, they are extremely long values that have had characters stripped during import, so I am wondering if they are hierarchical category values in your feeds that are stored something like this:
Category1>SubCategory1>SubCategory2>Subcategory3
...so when it is imported, the > is stripped and you get:
Category1SubCategory1SubCategory2Subcategory3
If that is the case, you could add the code for the "Explode" filter which is described in this thread:
http://www.pricetapestry.com/node/2017
However, before that can be implemented, you would need to move around the order in which user filters and standard filters are applied. In includes/admin.php, look for the following code beginning at line 180:
/* apply user filters */
$filter_dropRecordFlag = false;
if ($admin_importFiltersExist)
{
foreach($admin_importFilters as $filter)
{
$execFunction = "filter_".$filter["name"]."Exec";
$record[$filter["field"]] = $execFunction($filter["data"],$record[$filter["field"]]);
}
}
...and move that block ABOVE the following comment, on line 158:
/* apply standard filters */
With that and the Explode filter added to your includes/filter.php, you could then, based on the above example, add a new "Explode" filter to the Category field, and use ">" (without the quotes) as the Explode Character or String, and 0 as the Return Index value. This would return just "Category1" from the above string.
If you think this might help but you're not sure about the above mods, if you could email me your includes/admin.php and includes/filter.php i'll make the changes for you...
Cheers,
David.