Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

[Cart operations] Cannot get information about DateTime customizable option after adding product to cart #394

Closed
rogyar opened this issue Feb 23, 2019 · 1 comment

Comments

@rogyar
Copy link
Contributor

rogyar commented Feb 23, 2019

Description

On an attempt to retrieve information about customizable DateTime option of a product in the shopping cart the following error occurs:

The option instance type in options group is incorrect

Steps to reproduce (*)

  1. Create a simple product
  2. Assign a Date & Time customizable option to the product
  3. Add the newly created product to the shopping cart and retrieve information about its customizable options using the following query:
mutation {
  addSimpleProductsToCart(
    input: {
      cart_id: "$cart_id",
      cartItems: [
        {
          data: {
            qty: 1
            sku: "simple simple"
          },
          customizable_options: [{id:140,value:"2000-12-03 12:00:00"}]
        }
      ]
    }
  ) {
    cart {
      items {
        ... on SimpleCartItem {
          customizable_options {
            label
              values {
                label
                value
              }
            }
        }
      }
    }
  }
}

Expected result (*)

Product is added, information about customizable options is displayed

Actual result (*)

Product is added, the following error displayed instead of customizable options

{
  "errors": [
    {
      "debugMessage": "The option instance type in options group is incorrect.",
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 19,
          "column": 11
        }
      ],
      "path": [
        "addSimpleProductsToCart",
        "cart",
        "items",
        0,
        "customizable_options"
      ]
    }
  ]
}
@rogyar rogyar self-assigned this Feb 23, 2019
@rogyar rogyar changed the title [Cart Operations] Cannot get information about DateTime customizable option after adding product to cart [Cart operations] Cannot get information about DateTime customizable option after adding product to cart Feb 23, 2019
@rogyar rogyar closed this as completed Feb 23, 2019
@rogyar rogyar reopened this Feb 27, 2019
@naydav naydav added the bug Something isn't working label Mar 6, 2019
@naydav naydav modified the milestone: Release: 2.3.2 Mar 6, 2019
@naydav
Copy link
Contributor

naydav commented Mar 6, 2019

#414

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants