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. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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

Post by opencart-templates » Fri Dec 07, 2018 4:47 am

Check the event trigger for admin_mail_return just fixed an issue similar where the trigger was: admin/model/sale/return/addReturn/after

Run this SQL query to fix:

Code: Select all

UPDATE `oc_event` SET `trigger` = 'admin/model/sale/return/addReturnHistory/after' WHERE `code` = 'admin_mail_return'

Advanced Professional Email Template
Customers Pre-Sale. Inc abandoned cart email
Order Follow-Up Email. Inc request review
Email Validation with ZeroBounce


User avatar
Active Member

Posts

Joined
Mon May 16, 2011 7:24 pm
Location - UK

Post by julian70400 » Tue Jun 18, 2019 6:35 pm

Hello,

I just tryed this SQL request, now I have admin_mail_return with :
Déclenchement
admin/model/sale/return/addReturnHistory/after
Action
mail/return

But still no mail received. Am I missing something ? I am currently running OC 3.0.2.0 as the original author.

Mail server part is correctly set, because I receive other mails, but still not alert when a return is open.

Thanks for your help !

Newbie

Posts

Joined
Thu Jun 14, 2018 10:44 pm

Post by straightlight » Tue Jun 18, 2019 8:14 pm

Check your admin - > extensions - > events to see if this event you've updated is listed and active. Also check your admin - > systems - > settings - > edit settings - > mail tab (bottom).

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

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

Post by fegdeed » Thu Jun 20, 2019 2:59 am


New member

Posts

Joined
Fri Sep 21, 2018 12:01 am
Who is online

Users browsing this forum: aoe123, Evilonion, thekrotek, waynec444 and 39 guests