Jump to content

Automatically send e-mail after order status update via database


Recommended Posts

Hi all,

The fashion company I work for uses an external ERP system which connects to the PrestaShop database and changes the status of an order.

This works like a charm, but PrestaShop doesn't send an email to customers because of a new order status, even while the correct emails and in the mails folder and updating the status (and the emails) works via the admin panel. Is there any way to automatically send emails adter order status updates inserted direcly in the database? Thanks in advance.

Link to comment
Share on other sites

There is a hook the gets called when you update the status from the backoffice, you would have to somehow execute that hook, probably by making a call to a special php file that will be on the server.

The name of the hook is updateOrderStatus (I believe)

Link to comment
Share on other sites

  • 4 months later...

Any update here? I would like to receive an notification email to the store owner address everytime an the status is changed.

I a piece of code has to be added somewhere to include the store owner's email, but not sure where.

Please advise.

Thanks

Link to comment
Share on other sites

×
×
  • Create New...