Shop

From Shopify Wiki

Jump to: navigation, search

The liquid variable _shop_ has the following attributes:

Contents

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 (usually a 3 letter representation, e.g. USD) this shop uses.

Example usage:

All prices are in {{ shop.currency }}

shop.url

Returns a full url to your shop. Note: This depends on the primary address configured under preferences/DNS Administration

shop.domain

Returns the domain of your shop. Note: This depends on the primary address configured under preferences/DNS Administration

shop.products_count

Returns the amount of products you have online.

Example:
{{ shop.products_count }} {{ shop.products_count | pluralize: 'product', 'products' }} online

shop.collections_count

Returns the amount of collections you have created.

Personal tools