-
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
Configurable product addtocart with restAPI not working as expected #15028
Comments
Dude, both links that you provided don't work! |
Hey Ala,
That won’t work thats local setup, you can try this on any magento2
environment.
On Mon, 7 May 2018 at 12:20 PM, Ala Khalil ***@***.***> wrote:
Dude, both links that you provided don't work!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15028 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKlLkADCJQbbVCVi-AaPju4qRwR4Efj0ks5tv-7TgaJpZM4T0b1s>
.
--
Thanks & Regards,
Yash Patadia
|
@zamboten thanks this worked for me. @engcom-backlog-nickolas can you please refer to its duplicate pull, #15720 Closing this issue. |
Hi @yspeedwicked. Thank you for your report. The fix will be available with the upcoming 2.1.16 release. |
Hi @yspeedwicked. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
Addtocart using same API work fine for simple product, but while adding configurable product with restAPI, it creates duplicate product entry in cart, it should ideally update the qty.
Using single store and quote id is also same.
Preconditions
Steps to reproduce
Create quote id with customer token, (http://local.magento.com/rest/default/V1/carts/mine)
Addtocart same configurable product with rest API (http://local.magento.com/rest/default/V1/carts/mine/items)
Requets:
{ "cartItem": { "sku": "MJ12", "qty": 1, "quote_id": "11", "product_option": { "extension_attributes": { "configurable_item_options": [ { "option_id": "142", "option_value": "167" }, { "option_id": "93", "option_value": "49" } ] } } } }
Expected result
In cart there should be single product with two qty.
Actual result
The text was updated successfully, but these errors were encountered: