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

[Customizable Options] Call to a member function format() on boolean #761

@TomashKhamlai

Description

@TomashKhamlai

Preconditions (*)

  1. Simple Product is created:
    SKU: simple-product-1
    qty: 100500
    Customizable options:
    type: date

Steps to reproduce (*)

  1. Perform query for Customer and use header
    Header:
{
  "Authorization": "Bearer {{ CUSTOMER_TOKEN }}"
}

Query:

mutation {
  addSimpleProductsToCart(
    input: {
      cart_id: "{{ CART_ID }}"
      cart_items: {
        data: {
          quantity: 1
          sku: "simple-product-3"
        }
        customizable_options: [
          {
            id: 1
            value_string: "12-12-12"
          }
        ]
      }
    }
  ) {
    cart {
      items {
        quantity
        product {
          sku
        }
      }
    }
  }
}

Expected result (*)

  1. Product was added to cart

Actual result (*)

  1. Error:
{
  "errors": [
    {
      "debugMessage": "Call to a member function format() on boolean",
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "addSimpleProductsToCart"
      ]
    }
  ],
  "data": {
    "addSimpleProductsToCart": null
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions