Difference between revisions of "Liquid Template Variables - products"

From Spiffy Stores Knowledge Base

m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The liquid variable '''products''' contains a collection of all of the store's [[Liquid_Template_Variables_-_product|products]].
+
The Liquid template variable '''products''' contains a collection of all of the store's [[Liquid_Template_Variables_-_product|products]].
  
 
You can access any product by using the product handle to index the products contained within the '''products''' variable.
 
You can access any product by using the product handle to index the products contained within the '''products''' variable.
Line 7: Line 7:
  
 
This example allows you to access the description of the '''cotton-hat''' product.
 
This example allows you to access the description of the '''cotton-hat''' product.
 +
 +
== Further Reference ==
 +
 +
* [[Liquid Basics]]
 +
* [[Liquid Tag Reference]]
 +
* [[Liquid Filter Reference]]
 +
* [[Liquid Variable Reference]]
 +
* [[Liquid Paginate Tag|Pagination ]]

Latest revision as of 12:11, 25 June 2018

The Liquid template variable products contains a collection of all of the store's products.

You can access any product by using the product handle to index the products contained within the products variable.

<h1>{{ products.cotton-hat.title }}</h1>
<p>{{ products.cotton-hat.description }}</p>

This example allows you to access the description of the cotton-hat product.

Further Reference