News:

Support the VirtueMart project and become a member

Main Menu

Include child products in search

Started by alkis, March 20, 2013, 10:44:15 AM

Previous topic - Next topic

alkis

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

sohopros

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?

dnlvsci

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