Update Cart

updateCart #

updateCart(id: String, params: UpdateCartParams) PCart

Example #

mutation updateCart($id: String!, $params: UpdateCartParams!){
  updateCart(id: $id, params: $params) {
    id
    isShippingRequired
    cartItems {
      id
      product {
        id
        name
        slug
        description
        sku
        stock
        maxItemPerOrder
        price
        images
        fullImages
        isDigitalProduct
        views
        productUnit
        createdAt
        updatedAt
        category {
          id
          name
          slug
          description
          image
          fullImage
          productCount
          position
        }
        attributes {
          id
          name
          values
          isRequired
          createdAt
          updateAt
        }
        variations {
          id
          name
          price
          sku
          stock
        }
        digitalItems {
          id
          title
          description
          position
          contents {
            id
            title
            contentType
            isTrialAllowed
            contentText
            contentUrl
            updatedAt
            position
          }
        }
        feedbacks {
          rating
          comment
          createdAt
        }
        productSpecificDiscount
      }
      quantity
      purchasePrice
      attributes {
        name
        selectedValue
      }
      variation {
        id
        name
        price
        sku
        stock
      }
    }
  }
}

Try It Now