Jump to content

[Resolved] Make mailing list chronological


njohn

Recommended Posts

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.

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...