Describe the bug
When attempting to add a configurable product to the cart using the Add To Cart API, the request fails or does not process correctly when the superAttribute option is passed.
The API does not identify or validate the selected variant based on the provided super attributes.
To Reproduce
Steps to reproduce the behavior:
- Create a configurable product with attributes (e.g., size, color).
- On the storefront or Postman, hit the Add To Cart API (e.g., /api/checkout/cart/add).
- Pass the required payload, including:
- product_id
- quantity
- super_attribute
- Observe the API response.
Expected behavior
API should correctly identify the child variant based on the provided superAttribute.
Actual Result:
API is not processing the superAttributes correctly.
Response:
{
"errors": [
{
"message": "Options are missing for this product.",
"locations": [
{
"line": 2,
"column": 5
Screenshots
