- Getting Started
- Liquid reference
- Filters reference
- Tags reference
- Localization
- Theme structure
- Theme sections
- Theme assets
- Theme config
- Theme layout
- Theme templates
-
- article.liquid
- blog.liquid
- cart.liquid
- collection.liquid
- customer/account.liquid
- customer/addresses.liquid
- customer/details.liquid
- customer/login.liquid
- customer/order.liquid
- customer/register.liquid
- customer/reset-password.liquid
- home.liquid
- page.no-heading.liquid
- products.liquid
- search.liquid
- list-collections.liquid
- store-locator.liquid
- 404.liquid
- customer/activate_account.liquid
- customer/orders.liquid
- Submission
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.