VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: conurus on July 25, 2012, 01:52:39 AM

Title: "Notify Me" breaks in 2.0.8e if product detail assigned to a menu item
Post by: conurus on July 25, 2012, 01:52:39 AM
"Notify Me" breaks in 2.0.8e and bring back the front page IF the product involved has been assigned to a Joomla menu item, "VirtueMart ยป Product Details Layout"

I can hack around by modifying components/com_virtuemart/router.php, line 156, function virtuemartBuildRoute(&$query), switch case 'productdetails', change that line from

if (!count($query)) return $segments;

to

return $segments;

The Notify Me URL in 2.0.8e is

http://<site>/<menu alias>/notify

which is wrong. After the above hack, it is changed to

http://<site>/<menu alias>?layout=notify