Edit in GitHubLog an issue
Thanks to Atwix for contributing this topic!

Virtual product data types

The VirtualProduct data type implements the following interfaces:

Attributes that are specific to the virtual products can be used when performing a products query.

Sample query

The following query returns information about virtual product.

Copied to your clipboard
{
products(
filter: {
sku: {
eq: "test-virtual-product"
}
}
) {
items {
sku
__typename
uid
name
categories {
uid
name
path
}
price_range {
minimum_price {
final_price {
currency
value
}
}
maximum_price {
final_price {
currency
value
}
}
}
stock_status
}
}
}
Copied to your clipboard
{
"data": {
"products": {
"items": [
{
"sku": "test-virtual-product",
"__typename": "VirtualProduct",
"uid": "MjA1MA==",
"name": "test-virtual-product",
"categories": [
{
"uid": "Mzg=",
"name": "Sale",
"path": "1/2/38"
}
],
"price_range": {
"minimum_price": {
"final_price": {
"currency": "USD",
"value": 123
}
},
"maximum_price": {
"final_price": {
"currency": "USD",
"value": 123
}
}
},
"stock_status": "IN_STOCK"
}
]
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.