Jump to content

Getting a data from a order at hookUpdateOrderStatus


Recommended Posts

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:




One would like to help please.

Share this post

Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More