Liquid Template Variables - shop

From Spiffy Stores Knowledge Base

Revision as of 14:06, 14 May 2008 by Admin (talk | contribs) (New page: The liquid template variable ''shop'' has the following attributes: == <code>shop.id</code> == Returns the unique internal shop id number. This is normally only for internal usage. == ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The liquid template variable shop has the following attributes:

shop.id

Returns the unique internal shop id number.

This is normally only for internal usage.

shop.name

Returns a string with the shop's name.

Example usage:

{{ shop.name }}

shop.currency

Returns a string with the name of the currency that this shop uses. This is usually a three character representation (e.g. AUD).

Example usage:

All prices are in {{ shop.currency }}

shop.url

Returns the full URL for your shop.

Note: The value depends upon the primary address configured under Preferences -> DNS & Domains.

shop.domain

Returns the domain of your shop.

Note: The value depends upon the primary address configured under Preferences -> DNS & Domains.

shop.products

Returns all the products in the shop.

shop.products_count

Returns the number of products in the shop.

Example usage:

{{ shop.products_count }} {{ shop.products_count | pluralize: 'product', 'products' }} are available

shop.collections

Returns all the collections in the shop.

shop.collections_count

Returns the number of collections in the shop.