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

Description
Preconditions (*)
- Simple Product is created:
SKU: simple-product-1
qty: 100500
Customizable options:
type: date
Steps to reproduce (*)
- 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 (*)
- Product was added to cart
Actual result (*)
- 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
}
}