variant
The variant object has the following attributes:
variant.id
Returns the variant's unique ID.
variant.title
Returns the variant's title.
variant.price
Returns the variant's price. Use a money filter to return the value in a monetary format.
variant.compare_at_price
Returns the variant's compare at price. Use a money filter to return the value in a monetary format.
variant.inventory_quantity
Returns the variant's inventory quantity.
variant.available
Returns true if the variant is available for purchase, or false if it not.
variant.sku
Returns the variant's SKU.
variant.taxable
Returns true if taxes are charged for the variant, or false if they are not.
variant.barcode
Returns the variant's barcode.
variant.featured_image
Returns the image object associated with the variant.
variant.option
Returns the array of the variant's option.<
variant.option1
Returns the value of the variant's first option.
variant.option2
Returns the value of the variant's second option.
variant.option3
Returns the value of the variant's third option.