Hi David.
How do you recommend to make admin_importBrandMappings case insensitive?
I mean, Philips and philips, for instance, map to the same.
Thanks
Thanks! In fact, I wanted to say exact match (with equal and docs says), sorry:
=philips matches Philips and philips
Hi,
Sure - it can be made exact (whole word match and case insensitive) using preg_match - have a go with in place of the above replacement:
if (preg_match("/\\b".preg_quote($word)."\\b/i",$importRecord["brand"]) $found++;
Cheers,
David.
--
PriceTapestry.com
Hi,
Sure - to make Brand Mapping case insensitive, edit includes/admin.php and look for the following code at line 367:
if (strpos($importRecord["brand"],$word) !== FALSE) $found++;
...and REPLACE with:
if (stripos($importRecord["brand"],$word) !== FALSE) $found++;
Cheers,
David.
--
PriceTapestry.com