Phoenix is amazing to modify

General shopowner conversation that doesn’t quite fit into other sections.
Talk shop, share experiences, and connect with fellow Phoenix store owners.
Post Reply
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Phoenix is amazing to modify

Post by burt »

Over in this thread, Steve mentioned the possibility of viewing a single customers Queue.
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
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;

From this:

Code: Select all

SELECT * FROM outgoing ORDER BY send_at
This shows all the scheduled emails.

To something like this:

Code: Select all

SELECT * FROM outgoing WHERE customer_id = 456 ORDER BY send_at
This shows the scheduled emails of Customer ID 456 only.

Pretty 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;
queue_c.jpg
When clicked loads the standard admin/outgoing.php page with only that particular customers scheduled emails;
queue_o.jpg

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.
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Phoenix is amazing to modify

Post by 14Steve14 »

I know I have some weird ideas at times, but its good to see that a problem is so easy to rectify and make life easier for us store owners.

If you are not using this system then you should be. The emails do get a response. We are getting more feedback from customers on the service we offer after the order has been delivered. We are getting more product reviews, and more Trustpilot reviews. Even the recover carts used in combination with the existing recover carts mod is getting us results. The emails can be tailored to your specific business which is great and can include images. We set up a cron job and everything happens automatically once a day so nothing to stress over and no additional labour time to get emails sent. I cant thank Gary enough for this system.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply