News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Setting product ordering back to default in categories not working.

Started by joseph_2, October 28, 2013, 11:46:55 AM

Previous topic - Next topic

joseph_2

Virtuemart version: 2.0.24
Joomla: 2.5.14

Setting product ordering in categories back to default not working.

For instance:
1. BE: select sorting on product-name, product-sku and product-price 
2. BE: and the product-name is the default ordering
3. FE: select sorting on product-sku, and then it is not possible to get back to the default ordering, the product-name


I think the bug is in :
administrator/components/com_virtuemart/models/product.php


The bug is somewhere around this piece of code
when omitting the test on $orderbyCfg it works fine, but it is not the final solution.

if ($field == $orderbyCfg) {
   $link = JRoute::_ ($fieldLink . $manufacturerTxt,FALSE);
}
else {
   $link = JRoute::_ ($fieldLink . $manufacturerTxt . '&orderby=' . $field,FALSE);
}

regards, Joep Winters