product

The product object has the following attributes:

product.title

Returns the title of the product.

product.url

Returns the relative URL of the product.

{{ product.url }}
				
/products/sample-product-3
				

product.description

Returns the description of the product.

product.price

Returns the price of the product. Use one of the money filters to return the value in a monetary format.

product.price_max

Returns the highest price of the product. Use one of the money filters to return the value in a monetary format.

product.price_min

Returns the lowest price of the product. Use one of the money filters to return the value in a monetary format.

product.compare_at_price

Returns the compare at price of the product. Use one of the money filters to return the value in a monetary format.

product.available

Return true if a product is available for purchase. Return false if all the products variants inventory quantity value are zero.

product.variants

Returns an array the product's variants. More info ›

product.images

Returns an array the product's images.

product.options

Returns an array of the product's option names.

{% for option in product.options %}
	{{ option }}
{{% endfor %}
					
Color
Size
					

product.featured_image

Returns the relative URL of the product's featured image.

product.collections

Returns an array of all of the collections a product belongs to. More info ›

{% for collection in product.collections %}
	{{ collection.title }}
{% endfor %}
						
Feature on homepage
Fashion
Jeans
						

product.id

Returns the unique ID of the product.

product.handle

Returns the handle of the product, used to build its URL.

product.compare_at_price_max

Returns the highest compare at price of the product's variants. Use one of the money filters to return the value in a monetary format.

product.selected_or_first_available_variant

Returns the variant selected from the URL parameters, or the first available variant if none is selected. More info ›

product.sold_out

Returns true if none of the product's variants are available for purchase.

product.price_varies

Returns true if the product's variants differ in price.

product.secondary_image

Returns the product's second image, commonly used for a hover effect.

product.sole_variant_id

Returns the variant ID when the product has only a single variant.

product.brands

Returns an array of the brands associated with the product.

product.promotion

Returns the active promotion applied to the product, if any.

product.share_url

Returns the shareable URL of the product.

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