You are here:  » Adding and / or keywords to map products to category.

Support Forum



Adding and / or keywords to map products to category.

Submitted by johnmcg on Tue, 2011-08-09 02:31 in

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();

is in the admin.php?

Any suggestions?

Thanks,
John

Submitted by support on Tue, 2011-08-09 07:12

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