Skip to content

variant

A specific purchasable version of a product (one combination of option values).

Example

{{ variant.title }}: {{ variant.price | money }} ({{ variant.inventory_quantity }} left)

Output:

Large: ₹1,899.00 (7 left)

Properties

PropertyDescription
variant.api_payload
variant.availabletrue when at least one variant can be purchased.
variant.backorder_allowed
variant.barcodeBarcode value.
variant.bpn
variant.bulk_pricing_discount_type
variant.bulk_pricing_enabled
variant.bulk_pricing_tiers
variant.bundle
variant.bundle_items
variant.compare_at_priceOriginal price before discount, if any.
variant.compare_at_price_in_cents
variant.created_atCreation timestamp.
variant.digital_delivery
variant.featured_imageThe featured image.
variant.featured_mediaThe featured media item.
variant.gtin
variant.idUnique identifier.
variant.imagePrimary image.
variant.image_url
variant.imagesAll images.
variant.inventory_managementInventory tracking system, if any.
variant.inventory_policy’deny’ or ‘continue’ — selling when out of stock.
variant.inventory_quantityUnits in stock.
variant.inventory_tracked
variant.mediaAll media (images, video, 3D).
variant.metafieldsMetafields on this resource.
variant.mpn
variant.msrp
variant.nameName.
variant.on_sale
variant.option1
variant.option2
variant.option3
variant.option_1
variant.option_2
variant.option_3
variant.option_names
variant.option_values
variant.option_values_by_name
variant.option_values_concatenated
variant.optionsOption definitions (name, values).
variant.positionPosition/order index.
variant.pricePrice in the smallest currency unit (paise). Format with money.
variant.price_in_cents
variant.product
variant.product_id
variant.product_type
variant.public_title
variant.purchasable
variant.regular_price
variant.requires_shippingtrue when physical delivery is needed.
variant.sale_price_in_cents
variant.selected
variant.selected_options
variant.skuStock keeping unit.
variant.store_id
variant.taxabletrue when taxed.
variant.titleDisplay title.
variant.unit_price
variant.unit_price_measurement
variant.upc
variant.updated_atLast update timestamp.
variant.urlRelative URL of the resource.
variant.valueThe value.
variant.videos
variant.weightWeight in grams.

Property list is generated from the storefront engine (VariantDrop), so it always matches what your theme can use. Inspect live values with {{ variant | json }}.