-
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
Bundle options decimal qty is rendered as an integer part only #35964
Comments
Hi @say-my-name-user. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @say-my-name-user , |
Hi @engcom-Delta, you should check Advanced Inventory in the bundle options product, the simple product that is attached to the bundle, not bundle itself. |
Hi @say-my-name-user , |
Hi, you've got me wrong @engcom-Delta, again, this option is NOT in the bundle product itself but in the SIMPLE product(s) that bundle consists of. |
Hi @say-my-name-user , Please find the attached video for reference and screenshots. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-6548 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Delta. Thank you for verifying the issue. |
Thank you @engcom-Delta , but you mentioned only "Qty" column where the number is correct but pay attention to the "Product" column on the order/invoice details page. This columns has a bundle option title in the format like "qty x product_name" and qty is also incorrect there, "1 x Joust Duffle Bag" instead of "1.5 x Joust Duffle Bag". The same issue is in the email option title. |
Preconditions and environment
Steps to reproduce
Expected result
Bundle options Qty must be rendered everywhere according to amount you bought, in our case qty = 1.5
Actual result
Bundle options Qty is rendered only as an integer part, qty = 1
Additional information
This happens due to using
sprintf('%d', $attributes['qty'])
, this'%d'
makes it using only integer part.Needs to be fixed at least in
\Magento\Bundle\Block\Adminhtml\Sales\Order\Items\Renderer
,\Magento\Bundle\Block\Adminhtml\Sales\Order\View\Items\Renderer
and\Magento\Bundle\Block\Sales\Order\Items\Renderer
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: