-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
getPrice()
returns a string when setting custom price in admin order
#25968
Comments
Hi @paul-gene. 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:
For more details, please, review the Magento Contributor Assistant documentation. @paul-gene do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-Echo. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Echo Issue Available: @engcom-Echo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Unfortunately, we are archiving this ticket now as it did not get much attention from both Magento Community and Core developers for an extended period. This is done in an effort to create a quality, community-driven backlog which will allow us to allocate the required attention more easily. Please feel free to comment or reopen according to the Issue reporting guidelines |
@magento-engcom-team Are you serious?
I opened this ticket yesterday.... |
Hi @AndreyChorniy. Thank you for working on this issue.
|
@paul-gene This is mistake. I am going to working on this ticket. |
Thank you @AndreyChorniy for proposing this as |
@AndreyChorniy please just give up adding labels. If "good first issue" is in relation to me, then it's certainly not true, I've reported other issues in the past. You're fighting a losing battle with the bots here. |
✅ Confirmed by @sdzhepa Issue Available: @sdzhepa, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hello @paul-gene Thank you for contribution and collaboration! Sorry for #25968 (comment) and #25968 (comment) bot closed this issue accidentally by mistake due to delays and queues through all integration logic between GitHub and internal Jira... I have returned the Confirmation label. |
Hi @paul-gene. Thank you for your report.
The fix will be available with the upcoming 2.4.0 release. |
Preconditions
M 2.3.3
Steps to reproduce
getPrice()
from/vendor/magento/module-sales/Model/Order/Item.php
Expected result
Clearly states it should return a float, or null.
Actual result
However, when creating a MOTO order, and you set a custom price for a product, when you call
getPrice()
for the order items, the returned value will be a string, not a float.We switched to
getBasePrice()
(seemingly operates the same asgetPrice()
....) as that should also return a float, or null. It worked fine locally, but had a report that on Magento Cloud, it would return a string.The text was updated successfully, but these errors were encountered: