Post by vaidyamanishjoshi » Wed Jul 11, 2018 7:39 pm

I am using version 3.0.2.0
All email notifications working perfectly... BUT

1. When customer book Order Return, No email is triggered to customer and admin
2. When return order status history is updated with Notify Customer, No email is sent...

What can be solution for this ?

New member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by straightlight » Wed Jul 11, 2018 7:47 pm

What can be solution for this ?
In admin - > extensions - > events, do you see at least 33 events?

In admin - > systems - > settings - > edit settings - > mail tab, at the bottom, are the checkbox options selected? On the top of that tab, are your email settings properly configured?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vaidyamanishjoshi » Wed Jul 11, 2018 7:55 pm

straightlight wrote:
Wed Jul 11, 2018 7:47 pm
What can be solution for this ?
In admin - > extensions - > events, do you see at least 33 events?

In admin - > systems - > settings - > edit settings - > mail tab, at the bottom, are the checkbox options selected? On the top of that tab, are your email settings properly configured?
Yes,
1. There are 33 events are seen...and all are enabled.

2. Checkboxes are selected, email setting is also configured properly.. (other emails lie Order Status update etc are working...)

New member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by straightlight » Wed Jul 11, 2018 8:15 pm

Ensure your file logs option is enabled in your admin - > systems - > settings - > edit settings - > server tab. Then, in admin/controller/mail/return.php file,

find:

Code: Select all

if (isset($args[3])) {
			$notify = $args[3];
		} else {
			$notify = '';
		}		
add below:

Code: Select all

$this->log->write('Return Mail Log Notification: ' . htmlspecialchars_decode($notify));
Then, find:

Code: Select all

$mail->send();
add below:

Code: Select all

$this->log->write('Return Mail Log Event: ' . var_dump($mail));
Retry the return again in your admin. Then, check your OC error logs for a line beginning with: Return Mail Notification and: Return Mail Log Event . Do you see them?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vaidyamanishjoshi » Wed Jul 11, 2018 9:00 pm

Retry the return again in your admin. Then, check your OC error logs for a line beginning with: Return Mail Notification and: Return Mail Log Event . Do you see them?
I have made changes as per your suggestion and tried... But nothing is shown in error log file....

New member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by straightlight » Wed Jul 11, 2018 9:13 pm

Are your logs enabled from the admin settings?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vaidyamanishjoshi » Wed Jul 11, 2018 9:21 pm

straightlight wrote:
Wed Jul 11, 2018 9:13 pm
Are your logs enabled from the admin settings?
Yes, It is enabled....

New member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by straightlight » Wed Jul 11, 2018 10:14 pm

Let's run a cache test. From admin/controller/common/dashboard.php file,

find:

Code: Select all

$data['footer'] = $this->load->controller('common/footer');
add below:

Code: Select all

echo 'test123';
Then, save the file. Go to your admin dashboard. On the top-left of the page, do you see the test123 word? Also in the admin OC error log table, are you able to see other log entries or it's completely empty?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vaidyamanishjoshi » Wed Jul 11, 2018 10:33 pm

straightlight wrote:
Wed Jul 11, 2018 10:14 pm
Let's run a cache test. From admin/controller/common/dashboard.php file,


Yes Test123 is echoed properly
Log file is not totally empty...some errors with last 8 day's date are seen...And that errors are now sorted out by me..

New member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by straightlight » Wed Jul 11, 2018 10:49 pm

Clear your error logs by using the clear button on the top right of the error logs page and try the return action again. Then, see if the new messages appears in the error logs afterwards.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vaidyamanishjoshi » Wed Jul 11, 2018 10:56 pm

straightlight wrote:
Wed Jul 11, 2018 10:49 pm
Clear your error logs by using the clear button on the top right of the error logs page and try the return action again. Then, see if the new messages appears in the error logs afterwards.
Hmm...Tried... But till same issue....
No EMail Triggered,
Error log is empty

New member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by straightlight » Wed Jul 11, 2018 11:50 pm

Back in the same dashboard.php file, below:

Code: Select all

$data['footer'] = $this->load->controller('common/footer');
add:

Code: Select all

$this->log->write('Test123');
Go back to the Dashboard page afterwards. Then, go to the OC error logs page. Do you see the: Test123 message?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Wed Jul 11, 2018 11:56 pm

Issue already reported and resolved on GitHub: https://github.com/opencart/opencart/co ... 12275c286b . Try this solution (admin/controller/mail/return.php file only). Not to forget to do these steps afterwards before retrying the return action: viewtopic.php?f=176&p=728050#p718325

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vaidyamanishjoshi » Thu Jul 12, 2018 12:13 am

straightlight wrote:
Wed Jul 11, 2018 11:56 pm
Issue already reported and resolved on GitHub: https://github.com/opencart/opencart/co ... 12275c286b . Try this solution (admin/controller/mail/return.php file only). Not to forget to do these steps afterwards before retrying the return action: viewtopic.php?f=176&p=728050#p718325
Ohh... Okk

Thank you for kind support

New member

Posts

Joined
Tue Jun 09, 2015 2:47 am
Who is online

Users browsing this forum: No registered users and 13 guests