News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Limitbox and SEO

Started by aayach, March 14, 2012, 11:55:17 AM

Previous topic - Next topic

aayach

Hi All,

After installing the update of VirtueMart (2.0.0 > 2.0.2 under Joomla 2.5.2) I experienced an issue with the limitbox !
When I switch the limit from the limit box, the url is changed to :
http://www.mysite.com/category/results,1-12.html

But the page is redirected to the VirtueMart home page, exiting the current category.

Notice that the SEO is activated.

After some investigation, I fixed the issue by making a little change in components\com_virtuemart\router.php

the function virtuemartParseRoute($segments) exits without setting the default view!
Here is the change :
I replaced the first

if (empty($segments)) return $vars ;

with

// set default viewto category view
if (empty($segments)) {
$vars['view'] = 'category';
$vars['virtuemart_category_id'] = $helper->activeMenu->virtuemart_category_id ;
return $vars;
}


Hope that helps.

achilleas

I have that problem too.
If you switch from the limit box it redirects you to the VM frontpage with "results,1-XX" parameter to the url.

achilleas

aayach that code didn't helped me. The problem is still there.
Do we have any news from the devs about this?