Author Topic: URL: right item.....wrong category in url, Why?  (Read 2408 times)

delroyp

  • Jr. Member
  • **
  • Posts: 166
URL: right item.....wrong category in url, Why?
« on: December 27, 2011, 01:12:50 am »
whenever i click on one of the item i'm selling  lets say: Apples

the URL should read : directpv.com/green/apples
the URL should not read:directpv.com/mango/apples

why is it picking up a category that have nothing to do with the item I'm clicking on..whats causing that?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4067
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: URL: right item.....wrong category in url, Why?
« Reply #1 on: December 27, 2011, 09:09:05 am »
the sef router do the follow.
find the categorie you have set in the product description.
look if this are set in joomla menu.
If it's set in joomla menu use the alias from the menu.
If not : search for virtuemart home page in the menu.
If this exist : add the virtuemart alias and the category alias

Look if yhe beginning(mango here) is not your root of virtuemart.
If you want only "green" then you must add a link to your category with alias  "green" in joomla menu's.

It work so to always get the right menu ID to manage jommla module display ....