Hi
No products in /manufacturer/mfname-details when seo is enabled
Why? How to solve?
Ok.
So maybe it's normal for virtuemart.
Maybe this a new feature of vm2 a manufacturer page with no products in it.
:) :) :)
Well I figured out that to display products of manufacturer the link must be
http://next.allforbaby.com.ua/manufacturer/manufacturer-name/true.html
Any ideas how to do that?
SOLVED
/components/com_virtuemart/router.php
line 92
Was: $segments[] = $lang['manufacturer'].'/'.$helper->getManufacturerName($query['virtuemart_manufacturer_id']);
must be: if ( isset($query['virtuemart_category_id']) ) {
$segments[] = $lang['manufacturer'].'/'.$helper->getManufacturerName($query['virtuemart_manufacturer_id']);
} else {
$segments[] = $lang['manufacturer'].'/'.$helper->getManufacturerName($query['virtuemart_manufacturer_id']).'/true' ;
}
hi
changed as it is in the post above and it gave no result. additionally showed an error in
Parse error: syntax error, unexpected T_CASE in ............./components/com_virtuemart/router.php on line 125
125 case 'productdetails';
126 $virtuemart_product_id_exists = false;
127 if (isset($jmenu['virtuemart_product_id'][ $query['virtuemart_product_id'] ] ) ) {
... $query['Itemid'] = $jmenu['virtuemart_product_id'][$query['virtuemart_product_id']];
} else {
if(isset($query['virtuemart_product_id'])) {
if ($helper->use_id) $segments[] = $query['virtuemart_product_id'];
$virtuemart_product_id_exists = true;
$virtuemart_product_id = $query['virtuemart_product_id'];
unset($query['virtuemart_product_id']);
}
if(empty( $query['virtuemart_category_id'])){
$query['virtuemart_category_id'] = $helper->getParentProductcategory($virtuemart_product_id);
}
if(!empty( $query['virtuemart_category_id'])){
$categoryRoute = $helper->getCategoryRoute($query['virtuemart_category_id']);
if ($categoryRoute->route) $segments[] = $categoryRoute->route;
if ($categoryRoute->itemId) $query['Itemid'] = $categoryRoute->itemId;
unset($query['virtuemart_category_id']);
} else {
$query['Itemid'] = $jmenu['virtuemart'][0] ;
unset($query['virtuemart_category_id']);
}
if($virtuemart_product_id_exists) {
$segments[] = $helper->getProductName($virtuemart_product_id);
}
}
break;
case 'manufacturer';
if ( isset($jmenu['virtuemart_manufacturer']) ) $query['Itemid'] = $jmenu['virtuemart_manufacturer'];
if(isset($query['virtuemart_manufacturer_id'])) {
if (isset($jmenu['virtuemart_manufacturer_id'][ $query['virtuemart_manufacturer_id'] ] ) )
$query['Itemid'] = $jmenu['virtuemart_manufacturer_id'][$query['virtuemart_manufacturer_id']];
else $segments[] = $lang['manufacturers'].'/'.$helper->getManufacturerName($query['virtuemart_manufacturer_id']) ;
unset($query['virtuemart_manufacturer_id']);
}
break;