Difference between revisions of "Liquid Template Variables - product"
From Spiffy Stores Knowledge Base
Line 22: | Line 22: | ||
== <code>product.vendor</code> == | == <code>product.vendor</code> == | ||
+ | |||
+ | Returns the vendor of this product, such as "Spiffy Stores" or "Acme Tools" | ||
== <code>product.price</code> == | == <code>product.price</code> == |
Revision as of 17:22, 12 September 2008
The liquid template variable product has the following attributes:
Contents
- 1 product.id
- 2 product.handle
- 3 product.title
- 4 product.type
- 5 product.vendor
- 6 product.price
- 7 product.price_min
- 8 product.price_max
- 9 product.price_varies
- 10 product.compare_at_price_min
- 11 product.compare_at_price_max
- 12 product.compare_at_price_varies
- 13 product.featured_image
- 14 product.images
- 15 product.image_count
- 16 product.description
- 17 product.variants
- 18 product.available
- 19 product.collections
- 20 product.tags
- 21 product.url
product.id
Returns the unique internal number of the product.
This is normally only for internal usage.
product.handle
This is the product handle. The handle uniquely identifies the product in the URL address.
The handle is usually the product's title in lower case with all blanks replaced by a dash. "Red Hat" would have the handle "red-hat".
product.title
Returns the title of this product.
product.type
Returns the type of this product, for example, "t-shirt" or "garden gnome"
product.vendor
Returns the vendor of this product, such as "Spiffy Stores" or "Acme Tools"
product.price
product.price_min
product.price_max
product.price_varies
product.compare_at_price_min
product.compare_at_price_max
product.compare_at_price_varies
product.featured_image
product.images
product.image_count
product.description
Returns the description of this product.
product.variants
product.available
product.collections
product.tags
product.url
The is the relative URL address of the product.