Hello,
I was testing something. If I have a category called "Beach" and if in all the datafeeds it say beach (b is lowercase but word structure is 100% match) it will not show the items in beach until I tell the script Beach with a capital B for the datafeed category.
I guess what I am asking is there a way to accept the category name if 100% spelling one, two, numbers, dash etc to be where they go like "Ladies Socks" would get "Ladies Socks" and "ladies socks" without having to create 1000's of extra records in the database filter to create that.
Thank you.
Hi Mike,
You can easily make Category Mapping case in-sensitive if you like. In includes/admin.php, look for the following code beginning at around line 205:
/* apply category mappings */
if (isset($admin_importCategoryMappings["=".$importRecord["category"]]))
{
$importRecord["category"] = $admin_importCategoryMappings["=".$importRecord["category"]];
}
...and REPLACE with:
/* apply category mappings */
if (isset($admin_importCategoryMappings["=".strtolower($importRecord["category"])]))
{
$importRecord["category"] = $admin_importCategoryMappings["=".strtolower($importRecord["category"])];
}
Then look for the following code at line 224:
if (strpos($importRecord["category"],$word) !== FALSE) $found++;
...and REPLACE with:
if (strpos(strtolower($importRecord["category"]),strtolower($word)) !== FALSE) $found++;
Cheers,
David.
--
PriceTapestry.com