This can be done with a single mod to the import record handler if it's easy enough for you to go through each Category Mapping and create an entry for the master category in the list of mappings. This saves making another mod to be able to detect master categories easily.
Then, in includes/admin.php look for the following code, starting at line 220:
Hello Chani,
This can be done with a single mod to the import record handler if it's easy enough for you to go through each Category Mapping and create an entry for the master category in the list of mappings. This saves making another mod to be able to detect master categories easily.
Then, in includes/admin.php look for the following code, starting at line 220:
/* apply category mappings */
if (isset($admin_importCategoryMappings[$category]))
{
$category = $admin_importCategoryMappings[$category];
}
Here, we can simply return false in the case where there is no category mapping, so modify this code as follows:
/* apply category mappings */
if (isset($admin_importCategoryMappings[$category]))
{
$category = $admin_importCategoryMappings[$category];
}
else
{
return false;
}
That should do the trick;
Cheers,
David.