VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: EvanGR on August 19, 2014, 20:00:35 PM

Title: VM Search module, which results page?
Post by: EvanGR on August 19, 2014, 20:00:35 PM
[VM 2.6.6, J2.5.20]

Something weird about the VM Search module...

The VM Search module displays the results in a 'virtuemart categories' page I have in one of my menus. This looks weird e.g. in the breadcrumbs because the search results appear in: Home->New Products->*Search Term*

And the search results include some irrelevant results as well (maybe as a consequence).

Any way to configure/improve this?

Any way to define or tweak the search logic?

Thanks
Title: Re: VM Search module, which results page?
Post by: GJC Web Design on August 19, 2014, 22:24:52 PM
the breadcrumbs are formed in components/com_virtuemart/views/category/view.html.php

// Add the category name to the pathway
if ($category->parents) {
foreach ($category->parents as $c){
$pathway->addItem(strip_tags($c->category_name),JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$c->virtuemart_category_id, FALSE));
}
}


perhaps you can tweak that
Title: Re: VM Search module, which results page?
Post by: EvanGR on August 19, 2014, 23:21:36 PM
The breadcrumbs is not the problem, the URL also reflects that the search results page is inside a random VM category page!

Basically I want the search results to be in its own URL e.g.: mysite/search/search-keywords

and definitely not: mysite/new-products/search-keywords