SEF URL to products correct, but redirected to index.php?option=com_virtuemart

Started by nickelas, July 31, 2012, 15:01:18 PM

Previous topic - Next topic

nickelas

I have enabled "Search Engine Friendly URLs" and "Use URL rewriting" in the joomla config. Virtuemart categories work as expected, and the url to the products looks correct. But when clicking on one I am redirected to index.php?option=com_virtuemart
Anyone knows why?
Thanks

craftyweb

I'm having this problem too. Activated the SEO links in preparation to put the site live and none on the product pages will open!

If I select the 'Use Product and Category IDs' option the pages load but are completely empty, cannot figure out what is going on here.

Which version of VirtueMart are you using nickelas? I'm on 2.0.6. Just going to update to the latest version to check if it's still a problem.
Joomla: 2.5.20
VirtueMart 2.0.26d

Cris91

I've the same problem of nickelas. I'm using Joomla 2.5.4 and Virtuemart 2.0.6.
Anyone can help me?
Thanks

cristirp

It is happening to me too. Do you have products assigned to multiple categories? I'm wondering if that's the issue. I do have a link on the main menu to virtuemart, as I've read it is the way to go for SEF

lockwoodman

Ok, I've searched this forum for an answer to this problem and it seems like a hard one - i need the solution though.

For my VM to link properly (not back to category page) I have to have Joomla Global URL rewrite and sef on and VM config sef disabled checked.
I also have to have check translate strings - otherwise pagination links back to category also.

my site is http://timegallery.com.au

cristirp

How do you create a Joomla Global URL rewrite? and to rewrite from what? All the products are taking me to the main category page.
Thanks for the post and tips!

lockwoodman

In Joomla's global config URL rewrite is an option.

I'm mucking around with another fresh install of joomla and vm and think it might have had something to do with my template. Will keep searching.

ivus

Hi everyone.

Have you checked that you have correctly set your .htaccess file in the root directory?

Also, in order for JOOMLA! to route properly, it requires that you have com_virtuemart set as a menu item so it can reference the alias name when routing.

I hope this helps.  ;D

pacbrother

Hi,

I had the same error. After test I found that this only happens when Seo Suffix is empty. Is this a bug? Is it really necessary to have a suffix in the product url?

Thanks,
Bruno

ivus

Hi pacbrother,

Shouldn't do. SEO_SUFFIX simply adds the ".html" to the end of the string. That's it.

cristirp

It happens to me even with the SEO suffix off. I've also had the default Virtuemart added in the menu and noting. I've played with substituting that menu item with other Virtuemart menu options (categories, and such) but seems to make no difference.
I've also disabled the other menus in my website (left and footer) that contain Virtuemart features but haven't gotten it to work. It navigates through the category but as soon as I click on a product or product detail it takes me index.php?option=com_virtuemart

I have Beez20 as a template.
Here's the web: www.riovidastore.com

Thanks for your help!

cristirp

@lockwoodman
Same here, if I check Disable SEO from Virtuemart and Translate Strings,  it does not redirect

jjk

Concerning the SEO suffix: VM2 doesn't work without a SEO suffix. It needs one to tell the system that it is on a product details page. See here:
http://forum.virtuemart.net/index.php?topic=103199.msg345832#msg345832
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lockwoodman

Weird - Mine has come good now. I now only am using the VM Front Page Menu Item(it is as good as the categories page if you disable latest and featured) and have all boxes on the seo config page empty. It's working now.

cristirp

I'm very, very confused. I've tried all sorts of combinations and still have issues when the boxes on the VM seo config are empty. The Main menu item for VM goes to one of the categories layout (doesn't work either with the Default). I've turned off all other VM menu links, except for the one in the main menu.
All the combinations I've tried always end up in the same... once I click on a product, I get redirected to the VM main page. Is there something I have to change on the .htaccess file?

Thanks for the help!!!