All Methods Instance Methods Concrete Methods Deprecated Methods
| Modifier and Type |
Method and Description |
Storefront.ProductVariantQuery |
availableForSale()
Indicates if the product variant is available for sale.
|
Storefront.ProductVariantQuery |
barcode()
The barcode (for example, ISBN, UPC, or GTIN) associated with the variant.
|
Storefront.ProductVariantQuery |
compareAtPrice(Storefront.MoneyV2QueryDefinition queryDef)
The compare at price of the variant.
|
Storefront.ProductVariantQuery |
compareAtPriceV2(Storefront.MoneyV2QueryDefinition queryDef)
|
Storefront.ProductVariantQuery |
components(Storefront.ProductVariantComponentConnectionQueryDefinition queryDef)
List of bundles components included in the variant considering only fixed bundles.
|
Storefront.ProductVariantQuery |
components(Storefront.ProductVariantQuery.ComponentsArgumentsDefinition argsDef,
Storefront.ProductVariantComponentConnectionQueryDefinition queryDef)
List of bundles components included in the variant considering only fixed bundles.
|
Storefront.ProductVariantQuery |
currentlyNotInStock()
Whether a product is out of stock but still available for purchase (used for backorders).
|
Storefront.ProductVariantQuery |
groupedBy(Storefront.ProductVariantConnectionQueryDefinition queryDef)
List of bundles that include this variant considering only fixed bundles.
|
Storefront.ProductVariantQuery |
groupedBy(Storefront.ProductVariantQuery.GroupedByArgumentsDefinition argsDef,
Storefront.ProductVariantConnectionQueryDefinition queryDef)
List of bundles that include this variant considering only fixed bundles.
|
Storefront.ProductVariantQuery |
image(Storefront.ImageQueryDefinition queryDef)
Image associated with the product variant.
|
Storefront.ProductVariantQuery |
metafield(java.lang.String key,
Storefront.MetafieldQueryDefinition queryDef)
Returns a metafield found by namespace and key.
|
Storefront.ProductVariantQuery |
metafield(java.lang.String key,
Storefront.ProductVariantQuery.MetafieldArgumentsDefinition argsDef,
Storefront.MetafieldQueryDefinition queryDef)
Returns a metafield found by namespace and key.
|
Storefront.ProductVariantQuery |
metafields(java.util.List<Storefront.HasMetafieldsIdentifier> identifiers,
Storefront.MetafieldQueryDefinition queryDef)
The metafields associated with the resource matching the supplied list of namespaces and keys.
|
Storefront.ProductVariantQuery |
price(Storefront.MoneyV2QueryDefinition queryDef)
The product variant’s price.
|
Storefront.ProductVariantQuery |
priceV2(Storefront.MoneyV2QueryDefinition queryDef)
|
Storefront.ProductVariantQuery |
product(Storefront.ProductQueryDefinition queryDef)
The product object that the product variant belongs to.
|
Storefront.ProductVariantQuery |
quantityAvailable()
The total sellable quantity of the variant for online sales channels.
|
Storefront.ProductVariantQuery |
quantityPriceBreaks(Storefront.ProductVariantQuery.QuantityPriceBreaksArgumentsDefinition argsDef,
Storefront.QuantityPriceBreakConnectionQueryDefinition queryDef)
A list of quantity breaks for the product variant.
|
Storefront.ProductVariantQuery |
quantityPriceBreaks(Storefront.QuantityPriceBreakConnectionQueryDefinition queryDef)
A list of quantity breaks for the product variant.
|
Storefront.ProductVariantQuery |
quantityRule(Storefront.QuantityRuleQueryDefinition queryDef)
The quantity rule for the product variant in a given context.
|
Storefront.ProductVariantQuery |
requiresComponents()
Whether a product variant requires components.
|
Storefront.ProductVariantQuery |
requiresShipping()
Whether a customer needs to provide a shipping address when placing an order for the product
variant.
|
Storefront.ProductVariantQuery |
selectedOptions(Storefront.SelectedOptionQueryDefinition queryDef)
List of product options applied to the variant.
|
Storefront.ProductVariantQuery |
sellingPlanAllocations(Storefront.ProductVariantQuery.SellingPlanAllocationsArgumentsDefinition argsDef,
Storefront.SellingPlanAllocationConnectionQueryDefinition queryDef)
Represents an association between a variant and a selling plan.
|
Storefront.ProductVariantQuery |
sellingPlanAllocations(Storefront.SellingPlanAllocationConnectionQueryDefinition queryDef)
Represents an association between a variant and a selling plan.
|
Storefront.ProductVariantQuery |
sku()
The SKU (stock keeping unit) associated with the variant.
|
Storefront.ProductVariantQuery |
storeAvailability(Storefront.ProductVariantQuery.StoreAvailabilityArgumentsDefinition argsDef,
Storefront.StoreAvailabilityConnectionQueryDefinition queryDef)
The in-store pickup availability of this variant by location.
|
Storefront.ProductVariantQuery |
storeAvailability(Storefront.StoreAvailabilityConnectionQueryDefinition queryDef)
The in-store pickup availability of this variant by location.
|
Storefront.ProductVariantQuery |
taxable()
Whether tax is charged when the product variant is sold.
|
Storefront.ProductVariantQuery |
title()
The product variant’s title.
|
Storefront.ProductVariantQuery |
unitPrice(Storefront.MoneyV2QueryDefinition queryDef)
The unit price value for the variant based on the variant's measurement.
|
Storefront.ProductVariantQuery |
unitPriceMeasurement(Storefront.UnitPriceMeasurementQueryDefinition queryDef)
The unit price measurement for the variant.
|
Storefront.ProductVariantQuery |
weight()
The weight of the product variant in the unit system specified with `weight_unit`.
|
Storefront.ProductVariantQuery |
weightUnit()
Unit of measurement for weight.
|