-
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
Rest API Magento 2.4 order update overwrites existing item information #22431
Comments
Hi @aschrammel. 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. @aschrammel do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento-engcom-team It's not possible to reproduce on remote instance, as I don't have database access to this instance. |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @aschrammel thank you for you report, this issue has already ben fixed in this -> commit 7c6ecc3 |
Hi @engcom-backlog-nazar, thanks for your feedback but unfortunately the fix you mentioned does not fix the problem described. E.g. i have on in the the
After updating the order via the API the
For us it is not an option to rely on the option IDs or the So the issue in this case are the missing data in
After placing the order the data is stored on the item correctly - it's only missing after updating the order via API. I hope it's more clear now. |
Additionally maybe interesting is the fact, that this happens on virutal products! |
Hi @maheshWebkul721. Thank you for working on this issue.
|
Hi @GovindaSharma. Thank you for working on this issue.
|
Same issue here. Seems like very major/important issue. It works good with Simple but not with Bundle products. Preconditions (*)Magento Version 2.3.1 Steps to reproduce (*)
Expected result (*)The product_options remain as they were before the order state update Actual result (*)Missing custom options in the product_options column ( |
Hi @engcom-Charlie. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Charlie Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Here is a temp fix if you need to use the item saving api using a preference, if you rely on updating the product_options in the api this will not work though: https://gist.github.com/salesigniter/967f594a7ab34c6f73162e4e92fd34fb |
Hi @engcom-Charlie. Thank you for working on this issue.
|
Hi @aschrammel. Thank you for your report.
The fix will be available with the upcoming 2.4.1 release. |
Preconditions (*)
magento 2.4-develop
Steps to reproduce (*)
Place an order with a product with custom option.
On the order item in the database the custom options are stored in the
sales_order_item
table,product_options
field in theinfo_buyRequest
as "key": "value" pair.Update the order using the Rest API (f.e. just hold order).
The
product_options
are manipulated, omitting the custom options (they are present asoptions
as object, but missing in theinfo_buy_request
as "key": "value" pair.Expected result (*)
The
info_buyRequest
remain as they were before the API UpdateActual result (*)
The
info_buyRequest
data are changedThe text was updated successfully, but these errors were encountered: