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

Posted: July 18, 2019 at 12:46 AM Quote #242631
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.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 18, 2019 at 4:11 AM Quote #242646
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
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
www.SelectSystems.com.au
Select Systems International is a computer systems technology solution developer and integration service provider.
Posted: July 22, 2019 at 6:30 AM Quote #242758
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.
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more