Hi,
Joomla 1.5.22 and VM 1.1.6
I´m having the same problem. I have a 1st level categorie called "Calculators" and inside it, different models of calculators, for example, calculator 1, calculator 2, etc.
So, when the user searchs for "calculator", it shows the hole items with "calculator" in title or description.
But if they search "calculators", the system does not regret any result.
So, the problem is that the VM search module doesn´t search on categories.
I have tried the code modification up there but doesn´t work.
In www/administrator/components/com_virtuemart/html/shop_browse_queries.php
i find this code:
// This is the "normal" search
if( !empty($keywordArr) ) {
$sq = "(";
$numKeywords = count( $keywordArr );
$i = 1;
foreach( $keywordArr as $searchstring ) {
$sq .= "\n (`#__{vm}_product`.`product_name` LIKE '%$searchstring%' OR ";
$sq .= "\n `#__{vm}_product`.`product_sku` LIKE '%$searchstring%' OR ";
$sq .= "\n `#__{vm}_product`.`product_s_desc` LIKE '%$searchstring%' OR ";
$sq .= "\n `#__{vm}_product`.`product_desc` LIKE '%$searchstring%') ";
if( $i++ < $numKeywords ) {
$sq .= "\n AND ";
}
}
$sq .= ")";
$where_clause[] = $sq;
}
and replaced for this:
// This is the "normal" search
if( !empty($keywordArr) ) {
$sq = "(";
$numKeywords = count( $keywordArr );
$i = 1;
foreach( $keywordArr as $searchstring ) {
$sq .= "\n (`#__{vm}_product`.`product_name` LIKE '%$searchstring%' OR ";
$sq .= "\n `#__{vm}_product`.`product_sku` LIKE '%$searchstring%' OR ";
$sq .= "\n `#__{vm}_product`.`product_s_desc` LIKE '%$searchstring%' OR ";
$sq .= "\n `#__{vm}_category`.`category_name` LIKE '%$searchstring%' OR ";
$sq .= "\n `#__{vm}_product`.`product_desc` LIKE '%$searchstring%') ";
if( $i++ < $numKeywords ) {
$sq .= "\n AND ";
}
}
$sq .= ")";
$where_clause[] = $sq;
}
but still doesn´t work, any idea on how to fix this? Any other module or extension to fix this problem?