Hi David,
in my datafeed I have e.g. the following products:
Enyce Men Enyce Coaches Ii Jacket BT Outerwear
or
Akademiks Men Conference Polo - Shirts
Drj Underground Men Backpack Speaker Bag - Accessories
or
Mecca Girls Girls Upgrade Ls Shirt
Is there a possibility to execute search only for the name of the brand and the item like: t-shirt or outerwear or shirt or accessories?
regards
Roland
Hi Roland,
Sure - normal search can be limited to brand and category if you like and ignore name if you want to try that. To do this, first make sure that full text indexing is disabled by changing line 8 of config.advanced.php as follows:
$config_useFullText = FALSE;
Then, in search.php look for the following code at line 229:
$where .= "search_name LIKE '%".database_safe($word)."%'";
...and REPLACE with:
$where .= "category LIKE '%".database_safe($word)."%'";
$where .= "OR brand LIKE '%".database_safe($word)."%'";
Cheers,
David.
--
PriceTapestry.com