VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: jimv on March 20, 2017, 23:13:39 PM

Title: Manufacturer URL change
Post by: jimv on March 20, 2017, 23:13:39 PM
Hello,

What i want to do but i don't know if it is possible is to change the word "manufacturer" to something else or hide it in the url "http://www.mywebsite.gr/index.php/brands/manufacturer/bliddyspam". I have created a manufacturer layout named brands and i dont wish to show that world to customers.

Thanks in advance for your time.

Joomla 3.6.5
Virtuemart 3.0.18
Title: Re: Manufacturer URL change
Post by: GJC Web Design on March 21, 2017, 00:50:19 AM
you can choose your own texts in components\com_virtuemart\language\en-GB\en-GB.com_virtuemart.sef.ini
Title: Re: Manufacturer URL change
Post by: jimv on March 21, 2017, 16:50:23 PM
I have enabled sef in virtuemart configuration. I tried to create an overide and also changed the file you proposed but with no luck. only when i enable Translate Strings i get something different which is not preferable cause its not english.
Title: Re: Manufacturer URL change
Post by: stepan39 on May 10, 2017, 16:46:06 PM
Hi!
I removed "manufacturer" from the url by editing the router

/components/com_virtuemart/router.php
Old code:

$segments[] = $helper->lang('manufacturers').'/'.$helper->getManufacturerName($query['virtuemart_manufacturer_id']) ;

New code:
$segments[] = $helper->getManufacturerName($query['virtuemart_manufacturer_id']) ;
Title: Re: Manufacturer URL change
Post by: lausianne on February 06, 2020, 13:24:51 PM
Thanks a lot for sharing, stepan39, fixed it for me.