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

Message "The Cart includes virtual product(s) only, so a shipping address is not used." has category "internal" #401

Closed
TomashKhamlai opened this issue Feb 25, 2019 · 1 comment
Assignees
Labels
bug Something isn't working Component: QuoteGraphQl

Comments

@TomashKhamlai
Copy link
Contributor

Preconditions (*)

  1. Registered Customer
  2. Virtual Product
  3. Developer mode

Steps to reproduce (*)

  1. Log in as Registered Customer
  2. Add Product to Cart
  3. Get Customer token
  4. Get ADDRESS_ID by hovering 'Change Billing Address' or 'Change Shipping Address'
  5. Get CART_ID by createEmptyCart mutation (It returns active CART_ID)
  6. In GraphQL Client add authorization header and execute
mutation {
  setShippingAddressesOnCart(
    input: {
      cart_id: "4P41sMzbNyca3pwMcO4Q5j7m0RNmmvDW"
      shipping_addresses: {
        customer_address_id: 3
        cart_items: {
          cart_item_id: 8
          quantity: 1
        }
      }
    }
  ) {
    cart {
      cart_id
      shipping_addresses {
        address_type
        available_shipping_methods {
          carrier_code
          carrier_title
          method_code
          method_title
          price_excl_tax
          price_incl_tax
        }
        selected_shipping_method {
          amount
          amount
        }
      }
    }
  }
}

Expected result (*)

  1. "category": "graphql-input"

Actual result (*)

1."category": "internal"

{
  "errors": [
    {
      "debugMessage": "The Cart includes virtual product(s) only, so a shipping address is not used.",
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "setShippingAddressesOnCart"
      ]
    }
  ],
  "data": {
    "setShippingAddressesOnCart": null
  }
}
@naydav
Copy link
Contributor

naydav commented Feb 27, 2019

#330

@naydav naydav closed this as completed Feb 27, 2019
@naydav naydav added this to the Release: 2.3.2 milestone Feb 27, 2019
@naydav naydav added the bug Something isn't working label Feb 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Component: QuoteGraphQl
Projects
None yet
Development

No branches or pull requests

3 participants