·

photo credit: Neal. Here Be Dragons. via photopin (license)

Convert an order to a shipment in Magento 2

I’ve recently found a small article on how to convert an order to a shipment in Magento 2, but the code in question was a bit outdated.
For example, it leaned heavily on the Object Manager instead of handling it with dependency injection and repositories.
For that reason, I rewrote the code a bit to make it more compatible with Magento 2.1.x:

Visitors give this article an average rating of 4.0 out of 5.

How would you rate this article?

One thought on “Convert an order to a shipment in Magento 2”

  1. Christian says:

    Great Article, but I think one thing is missing. How can you notify the customer about the new shipment?

Leave a Reply