You are here:  » Category mapping help

Support Forum



Category mapping help

Submitted by jr on Mon, 2007-10-15 14:08 in

I'm trying to map these categories:

"Household Appliances_Washer / Dryer" TO "Washer Dryers"
"Household Appliances_Washing Machine" TO "Washing Machines"
"Household Appliances_Dryer" TO "Tumble Dryers"

I've created the 3 categories in the admin section and placed a trim filter on the category.

I've got the category restrict mod in /includes/admin.php as follows:

//begin mod - limit categories
$valid_categories = array("Tumble Dryers"=>1,"Washer Dryers"=>1,"Washing Machines"=>1);
// see if $category is in $valid_categories, return false if not
if (!isset($valid_categories[$category])) return false;
//end mod

At the moment the feed is not importing any records. Can you offer any advice

Thanks in advance
John
Washer and Dryer Price Compare

Submitted by support on Mon, 2007-10-15 14:22

Hi John,

The first thing to check is that the mod has been inserted after category mapping has been applied, otherwise it will be operating on the pre-mapped version.

If that's OK, it is probably because the value entered into the category mapping list are exactly as they appear in the feed, rather than as they appear after being imported and being "cleaned up" by the tapestry_normalise() function.

Normally, when setting up category mapping you would import without mapping in place to see the actual values of the categories as imported, and then enter those values into the category mapping list. For example, in the case of:

Household Appliances_Washer / Dryer

...this would imported as:

Household AppliancesWasher Dryer

...which is the value you would need to enter into the Category Mapping list for "Washer Dryers"

Hope this helps!
Cheers,
David.

Submitted by jr on Mon, 2007-10-15 16:03

Thanks David.