devdocs icon indicating copy to clipboard operation
devdocs copied to clipboard

Add a configurable product to a cart - Specify a parent and a child SKU : Given example is not working as expected

Open rmsundar1 opened this issue 2 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Which topic?

https://devdocs.magento.com/guides/v2.4/graphql/mutations/add-products-to-cart.html#add-a-configurable-product-to-a-cart

What's wrong with the content?

I have tried the example given under Specify a parent and a child SKU, however, it's not adding the product as a configurable product into the cart instead it's adding the product as a simple product.

I looked into the code and there is no logic to get the configurable option based on the parent_sku and sku param

What changes do you propose?

I would suggest removing this section and adding it back once its handled in code level

Anything else that can help to cover this?

No response

rmsundar1 avatar Aug 07 '22 11:08 rmsundar1

Hi @rmsundar1. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar Aug 07 '22 11:08 m2-assistant[bot]

@keharper Any thoughts here?

dobooth avatar Aug 18 '22 18:08 dobooth

I'll try to find time to look at this issue. I don't work in this area any more, so it might be a while.

keharper avatar Sep 01 '22 18:09 keharper

@keharper Do you need a little more time?

hguthrie avatar Sep 15 '22 13:09 hguthrie