AbanteCart Community
Shopping Cart Operations => Support => Topic started by: CoolSurfer on January 04, 2016, 02:44:27 AM
-
can we lock products sorting in admin panel according to products accessed latest?
After modifying a product you often have to access it again to edit n make finer changes, n have to search for it.
If the last created or last accessed product stays on top its time saving.
-
You can edit default grid sorting to date modified. This will effect only edits in product details section.
https://github.com/abantecart/abantecart-src/blob/master/public_html/admin/model/catalog/product.php
Line 1831:
replace:
$sql .= " ORDER BY pd.name";
With:
$sql .= " ORDER BY p.date_modified";
-
Thank you.
-
did the change but its not sorting according to date modified.
if(isset($data['sort']) && array_key_exists($data['sort'], $sort_data)){
$sql .= " ORDER BY " . $sort_data[$data['sort']];
} else{
$sql .= " ORDER BY p.date_modified";
}