·

orders

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 read further ...

Set the order status for new orders in Magento

In Magento, for most payment methods, you can assign an order status to a new order. You can do this in the system configuration for the specific payment method. But in a lot of cases, the only order status you can select here, is ‘Pending’.   But what if you want to assign a different order read further ...