You are here:  » Category mapping not functioning when Drop Record If Not RegExp is used

Support Forum



Category mapping not functioning when Drop Record If Not RegExp is used

Submitted by yomomma on Fri, 2012-05-04 04:31 in

I am not getting any keywords to map categories in the category mapping after I applied the RegExp filter.

Submitted by support on Fri, 2012-05-04 09:45

Hi,

Category mapping should still apply to any records that pass the Drop Record If Not RegExp filter (filters are applied prior to mapping). Note that Category Mapping keyword alternatives only apply to the category field as it stands in the distriubution; however it's an easy mod if you want the alternatives list to also test against the product name. In includes/admin.php look for the following code at line 252:

    if (strpos($importRecord["category"],$word) !== FALSE) $found++;

...and REPLACE with:

    if (
       (strpos($importRecord["category"],$word) !== FALSE)
        ||
       (strpos($importRecord["name"],$word) !== FALSE)
       )$found++;

If that's not the case and mappings still aren't being applied as expected if you could let me know the URL of your installation and any password required for /admin/ (i'll remove the details before publishing your reply), plus a few details of the categories that are not mapping as expected I'll check it out right away for you;

Cheers,
David.
--
PriceTapestry.com

Submitted by yomomma on Fri, 2012-05-04 14:31

I will give it a try. Thanks!