VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: osp on February 22, 2012, 11:47:50 AM

Title: Product (category) ordering not in sort field list (SOLVED manually)
Post by: osp on February 22, 2012, 11:47:50 AM
Ordering of the products in category is missing in order list.
'ordering' case is already in special cases for order by construct in the product model.
But currently not in admin tab list (SVN checked).

Solution:
administrator/.../shopfunctions.php
         $filterArray = array('product_name', 'created_on', 'product_sku',
            'product_s_desc', 'product_desc',
            'category_name', 'category_description','mf_name',
            'product_price', 'product_special', 'product_sales', 'product_availability', 'product_available_date',
            'product_height', 'product_width', 'product_length', 'product_lwh_uom',
            'product_weight', 'product_weight_uom', 'product_in_stock', 'low_stock_notification',
            'p.modified_on',
            'product_unit', 'product_packaging', 'p.virtuemart_product_id','ordering');

components/com_virtuemart/router.php
...
            'ordering' => 'favorite',
...