Hi David,
We want to map the product name and description fields to our categories using an and /or statement on a series of keywords like:
Category: Biodegradable Bags
Keywords:
biodegradable, organic, renewable, compostable, composting OR cornstarch
AND
bag, bags, handbag, handbag, suitcase, backpack, sack, rucksack, knapsack, carryall, satchel, luggage, baggage, purse, pouch, valise, portmanteau
Would this go in at the same place as the
$importRecord["category"] = tapestry_normalise($importRecord["category"]);
}
// strtolower the product name and description so that comparison is case insensitive
$pn = "";
$pn .= strtolower($importRecord["name"]);
$pn .= strtolower($importRecord["description"]);
// create an array of keywords => categories
$kw = array();
Any suggestions?
Thanks,
John
Hi John,
I see recall your category mapping code has been changed from the distribution perhaps if you could email me your latest version of includes/admin.php together with a couple more examples of how you'd like to represent mappings I'll take a look for you...
Cheers,
David.
--
PriceTapestry.com