Cannot open order in backend without a shipping method.
This happens e.g when only virtual products are purchased (downloads, gift cards, ...)
|
if (strpos($this->getOrder()->getShippingMethod(), 'intelipost') !== false) { |
Changing that line to this one would fix it:
if (strpos($this->getOrder()->getShippingMethod() ?? '', 'intelipost') !== false) {
Cannot open order in backend without a shipping method.
This happens e.g when only virtual products are purchased (downloads, gift cards, ...)
Magento2/Block/Adminhtml/Order/View/Tab/Intelipost.php
Line 138 in 8159946
Changing that line to this one would fix it:
if (strpos($this->getOrder()->getShippingMethod() ?? '', 'intelipost') !== false) {