Edit in GitHubLog an issue

WishlistItemInterface attributes and implementations

WishlistItemInterface provides details about items in a wish list. It has the following implementations:

  • BundleWishlistItem
  • ConfigurableWishlistItem
  • DownloadableWishlistItem
  • GiftCardWishlistItem
  • GroupedProductWishlistItem
  • SimpleWishlistItem
  • VirtualWishlistItem

Reference

The WishlistItemInterface reference provides detailed information about the types and fields defined in this interface.

Example usage

The following mutation adds a downloadable product to a wish list and returns detailed information about the product.

Request:

Copied to your clipboard
mutation {
addProductsToWishlist(
wishlistId: 3,
wishlistItems: [
{
sku: "240-LV06"
quantity: 1
}
]
) {
user_errors {
code
message
}
wishlist {
id
sharing_code
items_count
updated_at
items_v2 {
uid
quantity
added_at
... on DownloadableWishlistItem {
links_v2 {
uid
title
sample_url
}
samples {
title
sample_url
}
}
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"addProductsToWishlist": {
"user_errors": [],
"wishlist": {
"id": "3",
"sharing_code": "cVeOljNmNKm0e1jRFj7PRMyBXrpu88Sf",
"items_count": 1,
"updated_at": "2020-11-12 03:01:46",
"items_v2": [
{
"uid": "MTQ=",
"quantity": 1,
"added_at": "2020-11-12 03:01:46",
"links_v2": [
{
"uid": "ZG93bmxvYWRhYmxlLzM=",
"title": "Yoga Adventure",
"sample_url": "http://example.com/downloadable/download/linkSample/link_id/3/"
}
],
"samples": [
{
"title": "Trailer #1",
"sample_url": "http://example.com/downloadable/download/sample/sample_id/7/"
},
{
"title": "Trailer #2",
"sample_url": "http://example.com/downloadable/download/sample/sample_id/8/"
},
{
"title": "Trailer #3",
"sample_url": "http://example.com/downloadable/download/sample/sample_id/9/"
}
]
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.