Open Stereck opened 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) {
if (strpos($order->getShippingMethod() ?? '', '_') !== false) {
Hi Stephan There's a commit that solves it, it'll be updated later today Thanks again
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) {