Dirty Butter Posted March 19, 2017 Share Posted March 19, 2017 It did NOT crash and moved to Processing! Will brb after emails have had a chance to get here. OK!!! I received the admin copy of the customer's order confirmation and the fake customer's acknowledgement of the order. I didn't get the admin order email, but as many times as I've played with this order that may not be an issue. I'll start from scratch with another order, but what happened to make it suddenly work? What did I do wrong the first time? PS: The Order Complete order copies for the customer did arrive. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 19, 2017 Share Posted March 19, 2017 From scratch new test order moved from Pending to Processing manually - all emails arrived - my admin email, plus the customer's email, AND the admin copy of the customer's email! Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 19, 2017 Share Posted March 19, 2017 Good to know. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 19, 2017 Share Posted March 19, 2017 Glad it worked, but I still have no idea what I did wrong to make it not work for me at first. Quote Link to comment Share on other sites More sharing options...
sailing123 Posted March 20, 2017 Author Share Posted March 20, 2017 Hi bsmither, Your code snippets are working a treat with the order processing and complete status so big thank you for that. However, I noticed something not quite right but I don't think it is related to your snippets as I unticked them to test and the following issue remains. Under the store settings, if I choose "cancelled" as my Order status for admin email notifications, admin does not receive a copy of the cancellation order, only the customer. If I choose Pending, admin receives an email notification so is that a separate issue or related. This is a bug surely ? S. Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 20, 2017 Share Posted March 20, 2017 The Admin Notify Status is a different issue. Quote Link to comment Share on other sites More sharing options...
sailing123 Posted March 20, 2017 Author Share Posted March 20, 2017 That's what I thought. Probably best if I raise a ticket with Cubecart for this one ? Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 20, 2017 Share Posted March 20, 2017 I see where I made an assumption. The snippet says that a copy will be BCC'd to the admin(s) for any order status change email sent to the customer. With the (still somewhat limited) availability of hooks, I used the function that assigned the order's DATA to the template engine. Since (currently) there is no DATA being assigned to the Order Declined, Failed, and Cancelled statuses, the snippet will not be executed. We can certainly post an issue in the Github requesting that DATA be made available to be assigned in these statuses. Quote Link to comment Share on other sites More sharing options...
Claudia Posted November 21, 2022 Share Posted November 21, 2022 These 2 code snippets don't seem to be working in CC6.4.7. I like to receive all customer emails and not just see them in the emal log. Any way to get this to work? Thanks in advance!!! Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 21, 2022 Share Posted November 21, 2022 Are the customer emails you wish to get a copy of have to do with anything other than a change of order status to/from Pending, Processing, or Complete? Quote Link to comment Share on other sites More sharing options...
Claudia Posted November 21, 2022 Share Posted November 21, 2022 No .... Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 22, 2022 Share Posted November 22, 2022 And the customer's email, used for your experiments, is not one hooked to your real email used as the From in your store? Try this: in the snippet "BCC's the admins on all customer emails": Change: //$this->_mailer->SMTPDebug = 2; //$this->_mailer->Debugoutput = 'error_log'; To: $this->_mailer->SMTPDebug = 4; $this->_mailer->Debugoutput = 'error_log'; Save. As an experiment, I created an assistant administrator using a friend's email address, and checked the "Receive order status emails" checkbox. Have CubeCart clear its internal cache. (Be sure to have the error_log configured according to:) https://forums.cubecart.com/topic/51550-how-to-create-the-error-log/ This will have the Mailer write an event sequence to the error log (but not CubeCart's System Error Log). You should see things like: [21-Nov-2022 19:33:10 America/Los_Angeles] CLIENT -> SERVER: MAIL FROM:<storeMainAdminName@storeDomain.com> [21-Nov-2022 19:33:10 America/Los_Angeles] SMTP INBOUND: "250 2.1.0 OK z11-20020aa79e4b000000b0056c0d129edfsm9395132pfq.121 - gsmtp" [21-Nov-2022 19:33:10 America/Los_Angeles] SERVER -> CLIENT: 250 2.1.0 OK z11-20020aa79e4b000000b0056c0d129edfsm9395132pfq.121 - gsmtp [21-Nov-2022 19:33:10 America/Los_Angeles] CLIENT -> SERVER: RCPT TO:<customer@example.com> [21-Nov-2022 19:33:10 America/Los_Angeles] SMTP INBOUND: "250 2.1.5 OK z11-20020aa79e4b000000b0056c0d129edfsm9395132pfq.121 - gsmtp" [21-Nov-2022 19:33:10 America/Los_Angeles] SERVER -> CLIENT: 250 2.1.5 OK z11-20020aa79e4b000000b0056c0d129edfsm9395132pfq.121 - gsmtp [21-Nov-2022 19:33:10 America/Los_Angeles] CLIENT -> SERVER: RCPT TO:<asstAdminName@somewhere.com> [21-Nov-2022 19:33:10 America/Los_Angeles] SMTP INBOUND: "250 2.1.5 OK z11-20020aa79e4b000000b0056c0d129edfsm9395132pfq.121 - gsmtp" [21-Nov-2022 19:33:10 America/Los_Angeles] SERVER -> CLIENT: 250 2.1.5 OK z11-20020aa79e4b000000b0056c0d129edfsm9395132pfq.121 - gsmtp [21-Nov-2022 19:33:10 America/Los_Angeles] CLIENT -> SERVER: RCPT TO:<storeMainAdminName@storeDomain.com> The asstAdminName did receive their copy of the customer's email. The storeMainAdminName did not - I have not yet positively identified the culprit. Note: I am experimenting with customers who have as an email address the same domain as the store: that is, instead of <[email protected]>, all my customers have <[email protected]>. However, as such, that may pose a problem for me in trying to solve this - a situation that has nothing to do with CubeCart, but with the hosting provider for my domain name (currently, Havenswift). Quote Link to comment Share on other sites More sharing options...
Claudia Posted November 22, 2022 Share Posted November 22, 2022 Still not receiving the emails. That's ok if it's a lot of work don't mess with it just for me. Also noticed my emails in the log are showing the CC stock logo not mine 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.