-
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
Fixed undefinded shipping method name issue #17492 #17526
Fixed undefinded shipping method name issue #17492 #17526
Conversation
Hi @gelanivishal. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @VladimirZaets, thank you for the review. |
Fix code style
shippingMethodTitle = ' - ' + shippingMethod['method_title']; | ||
} | ||
|
||
return shippingMethod ? shippingMethod['carrier_title'] + shippingMethodTitle : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, your code will return empty string if no method_title
is found. Can we make it return carrier_title
in that case? Then we would have e.g. Flat Rate
instead of Flat Rate - undefined
or empty string which is a best solution in my opinion.
Hi @gelanivishal. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
Fixed undefined error on shipping method name is not set.
Fixed Issues (if relevant)
Manual testing scenarios
Method name
field left as a blank field.Contribution checklist