-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Shipping Method as object from order instance gives undefined index. #20380
Comments
Hi @maheshWebkul721. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @maheshWebkul721 do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@maheshWebkul721 Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @maheshWebkul721. Thank you for your report.
The fix will be available with the upcoming release. |
Hi @maheshWebkul721. Thank you for your report. The fix will be available with the upcoming 2.2.9 release. |
Preconditions (*)
Steps to reproduce (*)
$order = $this->orderFactory->create()->load($orderId); //your order id
$order->getShippingMethod(true)->getMethod();
Notice: Undefined offset: 1 in /Users/mahesh/contribute/mage226/vendor/magento/module-sales/Model/Order.php on line 1223
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: