Magento 2: Create order programmatically using carrier containing underscore (PostNL)
I am unable to create an order programmatically with the carrier PostNL. The carrier code is “tig_postnl” and the method “regular”. Normally I set the shipping address simply using: $shippingAddress = $quote->getShippingAddress(); $shippingAddress->setCollectShippingRates(true) ->collectShippingRates() ->setShippingMethod(‘freeshipping_freeshipping’); (for full code please see… Read More »Magento 2: Create order programmatically using carrier containing underscore (PostNL)