Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when changing the Order Status #2572

Closed
Tangol opened this issue Jan 16, 2015 · 8 comments
Closed

Error when changing the Order Status #2572

Tangol opened this issue Jan 16, 2015 · 8 comments

Comments

@Tangol
Copy link

Tangol commented Jan 16, 2015

When i try to change the status of an order i'm getting the following error even if i have unchecked the Notify Customer box:
error3
2015-01-16 21:27:19 - PHP Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\system\library\mail.php on line 162

Why does the script try to email the customer if the notify box is unchecked?

The same issue reported here: http://forum.opencart.com/viewtopic.php?f=191&t=137285

Using OC 2.0.1.2_rc rev 6ad153d

@JAY6390
Copy link
Contributor

JAY6390 commented Jan 18, 2015

It appears in OpenCart 2.0 that a customer gets notified of an order history update regardless of the notify setting. The $notify in catalog/model/checkout/order.php appears to simply suppress the comment if there is one. Pretty sure this is a bug as it didn't work like that in 1.5.X. Just to note the error messages are a result of you not having a mail server set up locally

@milimar
Copy link

milimar commented Jan 31, 2015

test

Yesterday I installed OC 2.0.1.2_rc and I tried to replicate your error, but It seems everything to be OK.
I haven't made any configurations or modifications to OC yet, I made a fresh installation for testing purposes only.

@danielkerr
Copy link
Member

yes the notify will s only if you leave a message.

if a customers order goes reversed he should know about it

@danielkerr
Copy link
Member

@Tangol as for your mail issue its because you have not setup your mail server.

@JAY6390
Copy link
Contributor

JAY6390 commented Feb 2, 2015

@danielkerr What if you just want to add a note to the order? The customer still gets a notification even if the status doesn't change, which will lead to confusion. This should work the same as it always has where the email doesn't go unless you click the notify - otherwise the notify is mislabelled and irrelevant.

@danielkerr
Copy link
Member

ok fine will change it

@danielkerr danielkerr reopened this Feb 2, 2015
@Tangol
Copy link
Author

Tangol commented Feb 3, 2015

@JAY6390 Finally a person that understood my bug report.
I know i didn't setup a mail server, because i just wanted to test Opencart locally and see if it's the right thing for me.
That's why the big bolded question:
"Why does the script try to email the customer if the notify box is unchecked?"

This is a bug because sometimes you just want to add notes to orders. ;)

But as Daniel said, i will stop commenting and posting bugs.
Have a good one!

@sfaragy
Copy link

sfaragy commented Nov 23, 2015

Here is the real solution. Please visit this link below where you can see the live demo and you can figure it out by yourself. Screenshots also available.

http://www.opencart.com/index.php?route=extension/extension/info&extension_id=24725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants