Open your: \modules\mod_vm_ajax_search\ajax\index.php
search for:
- Code: Select all
else
{
$href = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$row['product_id']);
$href = str_replace('modules/mod_vm_ajax_search/ajax/', '', $href);
and add next lines, so it looks like this:
- Code: Select all
else
{
$href = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$row['product_id']);
$href = str_replace('modules/mod_vm_ajax_search/ajax/', '', $href);
$exp = explode('/', $href);
if (count($exp)>=3)
{
if ((strlen($exp[1])==2) && ($exp[1]==$exp[2]))
{
unset($exp[1]);
$href = implode('/', $exp);
//var_dump($href); die();
}
}
We will release this within next updated of the ajax search.
Best Regards,
Stan