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

Manufacturer url

Started by erhabe, April 22, 2015, 17:52:10 PM

Previous topic - Next topic

erhabe

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




Studio 42

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

erhabe

Thank you ...i dont know to change the router code thats why i posted here.

And is not a chance to change the order?

Studio 42

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.

erhabe

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?

Studio 42

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

erhabe

I try with joomlas templates beez and protostar and i have no overrides

Studio 42

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.

erhabe

SOLVED
It works when i disable the ajax for product .