The variant object has the following attributes:

variant.available

Returns true if the variant is available for purchase, or false if it's not. For a variant to be available, its variant.inventory_quantity must be greater than zero or variant.inventory_policy must be set to continue. A variant with no variant.inventory_management is also considered available.

variant.compare_at_price

Returns the variant's compare at price.

variant.id

Returns the variant's unique ID.

variant.image

Returns the image object associated with the variant.

variant.inventory_management

Returns the variant's inventory tracking service.

variant.inventory_quantity

Returns the variant's inventory quantity.

variant.price

Returns the variant's price.

variant.sku

Returns the variant's SKU.

variant.title

Returns the concatenation of all the variant's product option values, joined by / characters.

variant.url

Returns a URL that is unique to only one product variant. The variant ID is used as the unique identifier.

{{ variant.url }}
/products/t-shirt?variant=12345678