Что бы сортировка товаров в VM по умолчанию стояла по убыванию (от малого к большему), необходимо заменить код в файле administrator/com_virtuemart/html/shop.browse.php заменить код:
if( $orderby == 'product_price' ) { if ($DescOrderBy == "DESC") { // using krsort when the Array must be sorted reverse (Descending Order) krsort($products, SORT_NUMERIC); } else { // using ksort when the Array must be sorted in ascending order kssort($products, SORT_NUMERIC); } }
на
if( $orderby == 'product_price' ) { if ($DescOrderBy == "DESC") { // using krsort when the Array must be sorted reverse (Descending Order) ksort($products, SORT_NUMERIC); } else { // using ksort when the Array must be sorted in ascending order krsort($products, SORT_NUMERIC); } }