Send Order Placed email notification only for the orders which are from Check Money Order Payment Method

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi All,

I have two payment methods enabled in one of my nop stores and store owner only wants to get order placed emails for  checkMoneyOrder type orders. He doesn't want to get order placed emails for credit card orders. I want to know is that is there a way to do this in message templates, instead of modifying the code. If I have to modify the code to filter this using payment methods, from where should I start with the code.

Thanks in Advance.
4 years ago
You would need to customise

The routine that sends the message is

        public virtual IList<int> SendOrderPlacedStoreOwnerNotification(Order order, int languageId)

in nop42\Libraries\Nop.Services\Messages\WorkflowMessageService.cs

Or you could do the check of the payment type in the calling routine

        protected virtual void SendNotificationsAndSaveNotes(Order order)

in nop42\Libraries\Nop.Services\Orders\OrderProcessingService.cs

Check Order.PaymentMethodSystemName
4 years ago
Yidna wrote:
You would need to customise

The routine that sends the message is

        public virtual IList<int> SendOrderPlacedStoreOwnerNotification(Order order, int languageId)

in nop42\Libraries\Nop.Services\Messages\WorkflowMessageService.cs

Or you could do the check of the payment type in the calling routine

        protected virtual void SendNotificationsAndSaveNotes(Order order)

in nop42\Libraries\Nop.Services\Orders\OrderProcessingService.cs

Check Order.PaymentMethodSystemName



Managed to do it mate with your help. Thanks.
3 years ago
How do i do this in the No Source version. Is there any plugins for this ?

Thanks,
Varun
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.