Open Lex-Weeks opened 3 months ago
Hi @Lex-Weeks. Thank you for your report. To speed up processing of this issue, 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:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: 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.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. @magento give me 2.4-develop instance
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Bravo, here is your Magento Instance: https://1c05d0cc8d4428e93f005ab0da3dd2d5.instances-prod.magento-community.engineering Admin access: https://1c05d0cc8d4428e93f005ab0da3dd2d5.instances-prod.magento-community.engineering/admin_5c44 Login: fc2aa57f Password: 1e95eb4fd2b4
Hi @Lex-Weeks,
Thanks for your reporting and collaboration.
AS per the Magento devdocs https://developer.adobe.com/commerce/webapi/rest/tutorials/orders/order-add-items/ the payload will be without price field if we are adding the price field we are getting Decoding Error.
It seems to be an expected behaviour of Magento.
Hence we are considering this as a improvement and marking this as feature request.
Thanks.
It seems there may be a comma missing after price, which would be causing the decoding error. As per the documentation PUT carts/{cartId}/items/{itemId} does accept price as a parameter.
@engcom-Bravo You have an error in the payload.
I confirm the issue occurs also in version 2.4.6. I am having the same problem, the price is not updated.
@ignaciomnzz I have talked to adobe commercial support and they effectively said that they are not going to fix this. Took a different path in writing our own endpoint that leverages the built in item functions to do this.
$item->setCustomPrice($YourPriceHere);
$item->setOriginalCustomPrice($YourPriceHere);
Summary
When you add an item to a cart via the API, if you specify a price with the item, the cart does not honor the price you supplied.
Examples
Steps to reproduce:
Proposed solution
No response
Release note
No response
Triage and priority