njohn Posted September 28, 2016 Share Posted September 28, 2016 Can items in mailing list be sorted chronologically? Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 28, 2016 Share Posted September 28, 2016 Yes, but we may need to know a bit more. Is this the Mailing List administration page? If so, a quick edit to the file: /admin/sources/customers.subscribers.inc.php Line 126, Was: $subscribers = $GLOBALS['db']->select('CubeCart_newsletter_subscriber', false, $where, array('email' => 'ASC'), $per_page, $page); Now: $subscribers = $GLOBALS['db']->select('CubeCart_newsletter_subscriber', false, $where, array('subscriber_id' => 'ASC'), $per_page, $page); We can also add sorters to the column headers. Quote Link to comment Share on other sites More sharing options...
njohn Posted September 28, 2016 Author Share Posted September 28, 2016 Did it but still alphabetic BTW where are emails listed - in db? where Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 28, 2016 Share Posted September 28, 2016 CubeCart_newsletter_subscriber Sorting by subscriber_id should have worked. Did you clear all caches? Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 28, 2016 Share Posted September 28, 2016 In admin, Store Settings, Advanced, enable debug mode and enter your IP address (www.whatismyip.com). CubeCart will show the SQL queries used to gather and populate pages at the bottom of the page. Then view Email List. One of the last SQL queries should be something like: [18] SELECT SQL_CALC_FOUND_ROWS * FROM `CubeCart_newsletter_subscriber` ORDER BY `subscriber_id` ASC LIMIT 20 OFFSET 0; -- (0 sec) [NOT CACHED] Quote Link to comment Share on other sites More sharing options...
njohn Posted September 28, 2016 Author Share Posted September 28, 2016 Thank you VERY MUCH - that did it!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.