Viewing 1 post (of 1 total)
  • Author
    Posts
  • svix Friend
    #147173

    have some trouble with this code in base.class.php

    switch ($v->type)
    {
    case 'separator' :
    $v->url = '#';
    break;
    case 'url' :
    if ((strpos($v->link, 'index.php?') !== false) && (strpos($v->link, 'Itemid=') === false)) {
    $v->url = $v->link.'&Itemid='.$v->id;
    } else {
    $v->url = $v->link;
    }
    break;

    default :
    $router = JSite::getRouter();
    $v->url = $router->getMode() == JROUTER_MODE_SEF ? 'index.php?Itemid='.$v->id : $v->link.'&Itemid='.$v->id;
    break;

    so if i connect to site in first time and choose from dropdown list any menu link created like “virtuemart menu type” with category id “xx” i go to this link BUT with attached “itemid=xx” tag – so it redir me to my product with “itemid=xx” not to my category with “itemid xx”

    so
    clean link looks like
    /index.php?option=com_virtuemart&Itemid=158&vmcchk= 1

    bad link
    /index.php?option=com_virtuemart&Itemid=158&vmcchk=1&Itemid=106

    Maybie it not from your side
    Sorry fo my bad english.

    Thank you.

    UPD..
    I dont know – but if i load com_virtuemart by default menu item without categoryID all works fine for me.

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  svix 14 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum