Developer forum

Forum » Ecommerce - Standard features » Send mail of order complete

Send mail of order complete

Tomas Gomez
Reply

Hi,

We need to send the order complete mail of some orders. That is to send again the order complete mail to a certain mail address.

A possibility would be to create a new order state, configure a notification mail in that state, and change the order state to that state to send the mail on the change.

Is there any other possibilty?

Regards,
Tomas


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Currently not.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Tomas,

 

Do you mean manually changing the order state? You sort of can do that. We do it all the time to test Email templates associated with an order state.

For example, we have a state called "Shipped and Invoiced", which has an email template associated. When debugging the template, we update the order state to "New" (or some other state" and then update it back to "Shipped and Invoiced" and the email is triggered again.

 

If you need to do that in code, there is a sort of a hack, which is to update the OrderStateId (to the "New" one or even blank), save the order, and then set it back again, which is basically mimicking the manual process (although I'm not even sure if you have to save the order between updating the property - it may not have to do that).

 

In either case that will "polute" the logs and/or may trigger other things if you have any custom notifications subscribers.

 

Is that what you are trying to do?

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1
 
Tomas Gomez
Reply

Hi Nuno,

Thanks for the idea!

Regards,
Tomas

 

 

You must be logged in to post in the forum