VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: erhabe on April 22, 2015, 17:52:10 PM

Title: Manufacturer url
Post by: erhabe on April 22, 2015, 17:52:10 PM
Hello

J 3.4.1 VM 3.0.8

On category page when i sort after manufacturer it gets me an url like this

sitename/manufacturer/manf-name/category-name/subcategory-name

Can be chenge the order to be like this?
sitename/category-name/subcategory-name/manf-name
or
sitename/category-name/manf-name

I know i must edit the router.php but i am afraid to broke something.

Thank you



Title: Re: Manufacturer url
Post by: Studio 42 on April 22, 2015, 21:05:59 PM
Hi,
You cannot change it because in category the route is set by :
if ( isset($query['virtuemart_manufacturer_id'])  ) {
$segments[] = $helper->lang('manufacturer').'/'.$helper->getManufacturerName($query['virtuemart_manufacturer_id']) ;
unset($query['virtuemart_manufacturer_id']);
}


If you change this then  you can have some over problems.

If you don't know how this work then dont touch it. You have many views to control in router not only the manfacturer.

Greets,

Patrick
Title: Re: Manufacturer url
Post by: erhabe on April 23, 2015, 00:22:48 AM
Thank you ...i dont know to change the router code thats why i posted here.

And is not a chance to change the order?
Title: Re: Manufacturer url
Post by: Studio 42 on April 23, 2015, 03:25:58 AM
Milbo said he wan't make a new super router. perhaps when this is done... But don't expect this come in the next days.
Title: Re: Manufacturer url
Post by: erhabe on April 23, 2015, 13:59:21 PM
I have another problems with urls....

When i create a product with childs and go to detailpage i select one of the child ....the url change but the page is not.Do you know why?
Title: Re: Manufacturer url
Post by: Studio 42 on April 23, 2015, 16:20:57 PM
Hi,
If you use a template overiding the productdetails page then this can come from here.
Try with the default Joomla template. If this work, then contact the temmplate support.

Patrick
Title: Re: Manufacturer url
Post by: erhabe on April 23, 2015, 23:19:24 PM
I try with joomlas templates beez and protostar and i have no overrides
Title: Re: Manufacturer url
Post by: Studio 42 on April 24, 2015, 00:58:21 AM
Some other have reported the bug, this is in virtuemart core.
You can try to disable the ajax feature in config, i think this get fixed in a new release. But i'm not core developper and don't know when.
Title: Re: Manufacturer url
Post by: erhabe on April 24, 2015, 01:39:11 AM
SOLVED
It works when i disable the ajax for product .