Skip to content

Add customer_address_id to CartAddressInterface #32938

Closed
@niklaswolf

Description

@niklaswolf

As a developer I want to get the customer_address_id of cart addresses so that I can match them easily with the other addresses a customer has saved in his customer addresses. Right now you have to do basically a string compare with a combination of fields to get a match, which in fact doesn't have to be a match because you can create different customer addresses with exactly the same values.

Added info from @paales
As a developer I want to know the customer_address_id on a CartAddress so that I know if a customer has selected one of the customer addresses

mutation SetCustomerShippingAddressOnCart($cartId: String!, $customerAddressId: Int!) {
  setShippingAddressesOnCart(
    input: { cart_id: $cartId, shipping_addresses: [{ customer_address_id: $customerAddressId }] }
  ) {
    cart {
      id
      __typename
      shipping_addresses {
        id
        customer_address_id
      }
      billing_address {
        id
        customer_address_id
      }
    }
  }
}

Schema

Current CartAddressInteface

Add these fields:

interface CartAddressInterface {
    id: ID!
    customer_address_id: ID @doc(description: "Reference to customer address")
}

If the CustomerAddress has implemented the uid we'd like to have customer_address_uid

AC

  • customer_address_id field is added to CartAddressInterface

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions