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.

icon-accounticon-add-newicon-add-storeicon-appicon-appleicon-archiveicon-arrowdownicon-ascicon-bookicon-cancelicon-cart-addonicon-checkouticon-cherryicon-collectionicon-comfirmicon-confirmicon-couponicon-creditsicon-currencyicon-dashboardicon-discounticon-disintegrateicon-domainicon-dscicon-duplicateicon-editicon-emailicon-exclamation-triangleicon-exporticon-eyeicon-eye-slashicon-fullscreenicon-fullscreen-closeicon-generalicon-gifticon-gridicon-hddicon-helpicon-importicon-infoicon-integrationicon-invoiceicon-likeicon-listicon-locationicon-logouticon-new-tabicon-not-secureicon-optionicon-ordericon-outline-arrowdownicon-pageicon-paymenticon-plusicon-posicon-pricingicon-printericon-producticon-product-sumicon-product-sum-xicon-redirecticon-reporticon-reseticon-searchicon-secureicon-settingicon-shippingicon-staricon-storeicon-switch-storeicon-tagicon-taxesicon-templateicon-themeicon-tickicon-trashicon-unarchiveicon-uploadicon-user-tagicon-usersicon-weighticon-wholesale