VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: erhabe on April 24, 2015, 14:59:42 PM

Title: Product url without -detail
Post by: erhabe on April 24, 2015, 14:59:42 PM
Hello

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

Attached is router.php

Title: Re: Product url without -detail
Post by: Milbo on April 25, 2015, 01:12:36 AM
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.
Title: Re: Product url without -detail
Post by: erhabe on April 25, 2015, 03:02:14 AM
I am not a php developer i just attached this file becouse i know many people want to remove that suffix.
Title: Re: Product url without -detail
Post by: GJC Web Design on April 25, 2015, 12:33:09 PM
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