thiagorobis Posted July 14, 2011 Posted July 14, 2011 I have a question on building a module.I need to calculate the difference in days between a status and other status changed then send an e-mail notification.For example, if between the date of purchase and today went up to 10 days, send e-mail. Otherwise, do not send e-mail.I'm trying to implement this function using a module and calling the hook hookUpdateOrderStatus.However, I am not able to get the date of the order in question, so the function is not working.I try used this one, but dosen't work at all: $order->date_add; AND $params['date_add'] One would like to help please.Grateful Share this post Link to post Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now