Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > ecommerce : how to send different email to customer depending the status View modes: 
User avatar
Member
Member
Fabien Calais - 11/25/2010 8:28:03 AM
   
ecommerce : how to send different email to customer depending the status
Hi,

I need to send different email to customer depending the status like :
payment received / payment failed

is there a solution?

Or is it possible to send the email when payement failed only to administrator?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/26/2010 2:43:56 AM
   
RE:ecommerce : how to send different email to customer depending the status
Hi,


you can use the custom macro for e-mail text where you can return the content according to current payment status.


Best regards,
Helena Grulichova

User avatar
Member
Member
Fabien Calais - 11/26/2010 7:57:35 AM
   
RE:ecommerce : how to send different email to customer depending the status
So,
You mean I can write custom macro to specify which content to send depending the status of the order, right?

But if I want completely diffeernt body content, I have to write all the html in the custom macro !

I there a another way to do this?

And what about send email only to customer or only to administrator?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/26/2010 8:40:01 AM
   
RE:ecommerce : how to send different email to customer depending the status
Hello,

1. Yes, you could write all the html in the custom macro.

2. You could use custom e-commerce provider - CustomOrderInfoProvider. There are methods: SendOrderStatusNotificationToAdministrator and SendOrderStatusNotificationToCustomer. If you fire nothing in one of these methods it will not send the appropriate notification.


Best regards,
Helena Grulichova