Shipping module development

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hello, I have an issue. I am building a plugin for my country local shipping service.
Problem is that, I am trying to send post request after order is created and placed in database. I know that OrderProcessingService have method called PlaceOrder and I could hardcode a post request in this method, but it's not a way I want to do it. My question is, how to know when I placed an order to my database and when to send a post request? Should I extend OrderProcessingService or is there any other ways? Please help me, and sorry for my bad language.
4 years ago
Handle paid or placed Event...

e.g.
https://www.nopcommerce.com/boards/t/47625/event-hadler-for-chage-order-payment-status.aspx
4 years ago
Thank you !!
4 years ago
aidasm wrote:
Hello, I have an issue. I am building a plugin for my country local shipping service.
Problem is that, I am trying to send post request after order is created and placed in database. I know that OrderProcessingService have method called PlaceOrder and I could hardcode a post request in this method, but it's not a way I want to do it. My question is, how to know when I placed an order to my database and when to send a post request? Should I extend OrderProcessingService or is there any other ways? Please help me, and sorry for my bad language.


Hello, you can create a new class called OverriddenOrderProcessingService that inherit from the OrderProcessingService. Then you have to register it using autofac in your OrderProcessingService.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.