How to add new shipping to an Order in OrderPaidEvent

Posted: September 13, 2017 at 10:38 AM Quote #192896
Hi all,
I'm using Nop version 3.4
I've created a plugin with my own Shipping Computation Method and it worked fine.

Now I want to invoke my shipping provider when the order is paid, so I can create a shipping order and get the tracking number.

How can I create a shipping order in Nop and associate it to the customer's order?
I've already created the class that implements IConsumer<OrderPaidEvent> but I do not know how to proceed.

Is there any service that creates the shipping order? Do I need to update Order entity?
Do you have any documentation about that?

Thanks in advance!
Juan
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: September 13, 2017 at 8:43 PM Quote #192910
If you want to add a Shipment to an Order, then I suggest that you look at the code that does it.
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)
www.noptools.com
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.