-
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
Inconsistent quote item isVirtual value #34089
Comments
Hi @MeCapron. 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. Please, add a comment to assign the issue:
🕙 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, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-November. Thank you for working on this issue.
|
Verified the issue on Magento 2.4-develop branch having B2B modules enabled but cannot able to reproduce the issue: Steps performed: |
Hello @engcom-November, thanks for your help. Sorry for not being that specific, the issue will NOT be reproduced inside the database. It will only be reproduced inside the PHP because values will be cast when sent to database. I don't know how to reproduce it clearly on a Vanilla instance without tweaking the files. The problem is :
Do the same without saving the quote at the beginning :
Value types is changing accross the time, on PHP specifically, because of the line mentioned in #34089 (comment) Am I not clear enough? Thanks! |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @MeCapron, Thanks for posting this issue! I have verified this issue via codebase. As per the code, And So I am confirming this issue. Thanks |
✅ Jira issue https://jira.corp.magento.com/browse/AC-1381 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
@magento I am working on this |
@magento I am working on this |
I am not able to reproduce the issue. |
@ananth-iyer Thanks for your Contribution!!. As per this comment #34089 (comment) since the issue is no more reproducible we are closing this issue. Thanks. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
This inconsistent behavior is done by the beforeSave function of \Magento\Quote\Model\Item line 274
I couldn't find why this line was introduced because it is present since the very first commit (2014). A simple workaround would be to replace
$this->setIsVirtual($this->getProduct()->getIsVirtual());
to$this->setIsVirtual($this->getProduct()->getIsVirtual() ? '1' : '0');
However, this line does not seem to be useful at all.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: