When creating an order using this plugin for a ProductVariant with shippingRequired = false I get an exception SMException in \Sylius\AdminOrderCreationPlugin\EventListener\OrderCreationListener::completeOrderBeforeCreation because the 'select_shipping' state can not be applied.
I suggest checking that state can be applied first as is done for the payment in the lines below:
When creating an order using this plugin for a ProductVariant with
shippingRequired = false
I get an exception SMException in \Sylius\AdminOrderCreationPlugin\EventListener\OrderCreationListener::completeOrderBeforeCreation because the 'select_shipping' state can not be applied.I suggest checking that state can be applied first as is done for the payment in the lines below:
I can send you a path for the class and spec if you want.