Support the VirtueMart project and become a member

Main Menu

Manufacturer URL change

Started by jimv, March 20, 2017, 23:13:39 PM

Previous topic - Next topic



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 "". 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

GJC Web Design

you can choose your own texts in components\com_virtuemart\language\en-GB\en-GB.com_virtuemart.sef.ini
GJC Web Design
VirtueMart and Joomla Developers - php developers
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
Contact for any VirtueMart or Joomla development & customisation


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.


I removed "manufacturer" from the url by editing the router

Old code:

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

New code:
$segments[] = $helper->getManufacturerName($query['virtuemart_manufacturer_id']) ;


Thanks a lot for sharing, stepan39, fixed it for me.