Sort by SKU with simple URL rewrite - wrog url %60p%60.

Started by martinw, April 24, 2013, 12:11:25 PM

Previous topic - Next topic

martinw

Virtuemart 2.0.20b
Joomla 2.5.9 (with simle url rewrite)

On products list page when i want to sort products by SKU - url is wrong:

http://www.[websiteadress].com/[category]/by,%60p%60.product_sku

But if i change it to

http://www.[websiteadress].com/[category]/by,product_sku

How to fix it in source code? why i get this issue?


sotospez

i have the same problem i fix it  with this change
in  file /administrator/components/com_virtuemart/models/product.php


1961 else {
1962 $link = JRoute::_ ($fieldLink . $manufacturerTxt . '&orderby=' . $field);
1963 }
1967 $orderByLink .= '<div><a title="' . $text . '" href="' . $link . '">' . $text .

with

1962  $link = JRoute::_ ($fieldLink . $manufacturerTxt . '&orderby=' . $fieldWithoutPrefix);