VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: alkis on March 20, 2013, 10:44:15 AM

Title: Include child products in search
Post by: alkis on March 20, 2013, 10:44:15 AM
Hello, i want to INCLUDE childs product SKU and short description in search.
I searched the forum and i only found how to EXCLUDE them...Although in my installation these are not included.
Can someone help me pls?

I use VM 2.020b and joomla 2.5.9
Thanks in advance
Title: Re: Include child products in search
Post by: sohopros on July 25, 2013, 15:54:25 PM
Same problem here - using the Joomla search function on the front-end and child products are not returned in the results of a search .  Parent products are returned, but not children.  How do we trouble-shoot this?
Title: Re: Include child products in search
Post by: dnlvsci on October 31, 2013, 21:37:27 PM
For child product searching you have two variation:

in config Shop front tab you must thick "Show uncategorised child products in search results and modules?"

Or you need to uncomment /administrator/components/com_virtuemart/models/product.php

if ($isSite and !VmConfig::get('show_uncat_child_products',TRUE)) {
$joinCategory = TRUE;
$where[] = ' `#__virtuemart_product_categories`.`virtuemart_category_id` > 0 ';
}
         

After them you can search child product. Don't forget select right Available Search Fields on "Product Order Settings" tab