Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Lock products sorting in admin panel according to products accessed latest

Started by CoolSurfer, January 04, 2016, 02:44:27 AM

Previous topic - Next topic

CoolSurfer

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.

abantecart

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";
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help


CoolSurfer

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";
}

Forum Rules Code of conduct
AbanteCart.com 2010 -