Help

Frequently asked questions and other useful tidbits.

Category

Updated on April 16th, 2008

category.id

Returns the id of a category.

category.name

Returns the name of a category.

category.permalink

Returns the permalink of a category.

category.url

Returns the URL of a category.

View <a href="{{ category.url }}">my category</a>

category.products

Returns all of the products of a category.

{% for product in category.products %}
  <p>{{ product.name }}</p>
{% endfor %}

categories.all

Returns all of the categories in your store.

{% for category in categories.all %}
	  <p>{{ category.name }}</p>
	{% endfor %}

categories.active

Returns all of the categories that are currently in use by one or more products.

{% for category in categories.active %}
  <p>{{ category.name }}</p>
{% endfor %}

categories.permalink

Returns a specific category based on it’s permalink.

<a href="{{ categories.tees.url }}">View tees</a>

Contact

Can’t find an answer to your question? No worries, we’re here to help.