intelipost / Magento2

Novo aplicativo Magento
1 stars 6 forks source link

Cannot create order without a shipping method #20

Open Stereck opened 1 year ago

Stereck commented 1 year ago

Cannot place an order without a shipping method. This happens e.g when only virtual products are purchased (downloads, gift cards, ...)

https://github.com/intelipost/Magento2/blob/8159946a65b397eb72ba81c77e481bcf18fbdb82/Observer/Sales/OrderPlaceAfter.php#L79

Changing that line to this one would fix it: if (strpos($order->getShippingMethod() ?? '', '_') !== false) {

contardi commented 1 year ago

Hi Stephan There's a commit that solves it, it'll be updated later today Thanks again