News:

Support the VirtueMart project and become a member

Main Menu

Product url without -detail

Started by erhabe, April 24, 2015, 14:59:42 PM

Previous topic - Next topic

erhabe

Hello

I found a solution for taking off the -detail suffix from product url but its outdated.

Attached is router.php


Milbo

I am sorry, but that is too outdated. I also wonder how it is solved, because it is a set problem. To use the router without -detail is no problem as long you assure that a product slug is never used as category name or similar.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

erhabe

I am not a php developer i just attached this file becouse i know many people want to remove that suffix.

GJC Web Design

but as Max says - as soon as you have a cat slug with the same name as a prod slug u have a problem - the product detail is unreachable as it will default to the cat
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation