I thought of a few ways to view a single customers queue, my first idea was to have it as part of the admin/customers.php page - a new "view" which showed that customers Queue. I started coding this to soon realise that I was duplicating a lot of code. Pointless to do so, so I move back to the admin/outgoing.php page to change the SQL to show only a selected customer;It took us a long time the other day to find a customer when he cancelled an order so we didn't send all the emails that were set up to be sent
From this:
Code: Select all
SELECT * FROM outgoing ORDER BY send_atTo something like this:
Code: Select all
SELECT * FROM outgoing WHERE customer_id = 456 ORDER BY send_atPretty simple. I hardcoded it to get the concept working.
You all know my methods by now, and that is to try not to change core. Now I had the concept code working, I reverted my changes back to standard Phoenix. And now to find a way to do this without changing core code.
By utilising our Hooking system, I got this in place (WITH NO CORE CODE CHANGES);
A new button on admin/customers.php, looking like this; When clicked loads the standard admin/outgoing.php page with only that particular customers scheduled emails;
You might also notice that on this page, in the bottom left is a "Reset" button (which only shows when looking at a particular customers list of Scheduled emails. This Reset button links back to admin/outgoing.php (which therefore shows the full list of Scheduled Emails).
We are the ONLY cart to have this amazing level of flexibility.