Because there are some spaces missing to support insertion of debug information, I am providing the below debug information starting from lower in the file to support line numbers. Line numbers given later in the file will be moved down by the insertion of code earlier in the file.
Beginning at line 160, insert the following which will move the if statement down.
Code:
trigger_error('send_extra_to: '. print_r($send_extra_emails_to, true), E_USER_WARNING);
Then at line 155 replace the blank line with:
Code:
trigger_error('send_extra_init: '. print_r($send_extra_emails_to, true), E_USER_WARNING);
At line 139, replace the blank line with:
Code:
trigger_error('notify_customer: '. print_r($notify_customer, true), E_USER_WARNING);
At line 101, replace the blank line with:
Code:
trigger_error('notify_customer_init: '. print_r($notify_customer, true), E_USER_WARNING);
At line 86, insert (moving the if statement down):
Code:
trigger_error('pre_test: '. print_r($orders_new_status, true). ' current: '. print_r($orders_current_status, true). ' email: '. print_r($email_message, true), E_USER_WARNING);
At line 60, insert (moving the else statement down):
Code:
trigger_error('skip send', E_USER_WARNING);
Try changing status a time or two and check the logs folder. Each time the order status update file is executed by processing a new action (basically) a mydebug log is expected to be created. There are cases where more than one per execution will be generated, but let's address that later.
Now, you can post the contents of the file(s), but... please obscure the admin directory (as I expect it to be included in the file when performing an admin status change), also obscure any personal information associated with the email that would be generated. Please use some "obvious" obfuscation. E.g. admin, some place, some name.
Suggest posting the most recent of those files and then can recommend other actions. If there is no file generated, that would be good to know as well.
May I also suggest possibly making a backup of the file before making all of the above edits so that it may be easier to remove them otherwise work from the last code change to the first to restore the file.
Bookmarks