Virtuemart presenta algunos problemas cuando tenemos varios items de menú que despliegan una determinada categoría de Virtuemart. A veces aparecen módulos que no corresponden, y el módulo de breadcrumbs de Joomla! no funciona correctamente.
Para solucionar estos problemas, puede editarse el archivo ps_session.php dentro de administrator\components\com_virtuemart\classes y sustituir la función getShopItemid por lo siguiente:
function getShopItemid() {
// MODTAG: RICHARD G. MAYER MOD
if ( empty( $_REQUEST[‘shopItemid’] )) {
$_REQUEST[‘shopItemid’] = $_REQUEST[‘Itemid’];
}
/*
if( empty( $_REQUEST[‘shopItemid’] )) {
$db = new ps_DB;
$db->query( «SELECT id FROM #__menu WHERE link=’index.php?option=com_virtuemart’ AND published=1»);
if( $db->next_record() ) {
$_REQUEST[‘shopItemid’] = $db->f(«id»);
}
else {
if( !empty( $_REQUEST[‘Itemid’] )) {
$_REQUEST[‘shopItemid’] = intval( $_REQUEST[‘Itemid’] );
}
else {
$_REQUEST[‘shopItemid’] = 1;
}
}
} */
return intval($_REQUEST[‘shopItemid’]);
}
Tomado de: http://forum.virtuemart.net/index.php?topic=70482.0
I blog frequently and I truly thank you for your content.
This great article has truly peaked my interest. I will book mark
your blog and keep checking for new information about once a week.
I opted in for your Feed as well.