Help

Frequently asked questions and other useful tidbits.

Theme

Updated on September 29th, 2009

theme.image

Returns the image of your theme. Set on the Design > Theme page of the admin.

<img src="{{ theme.image.url }}" />

theme.show_search

Returns true of false based on whether the theme should show a product search field. Set on the Design > Theme page of the admin.

{% if theme.show_search %}
  <input name="search" type="text" />
{% end %}

theme.show_newest

Returns true of false based on whether the theme should show the newest products. Set on the Design > Theme page of the admin.

{% if theme.show_newest %}
  {% for product in products.newest %}
    <p>{{ product.name }}</p>
  {% endfor %}
{% end %}

theme.show_top_selling

Returns true of false based on whether the theme should show the top selling products. Set on the Design > Theme page of the admin.

{% if theme.show_top_selling %}
  {% for product in products.top_selling %}
    <p>{{ product.name }}</p>
  {% endfor %}
{% end %}

theme.show_products_feed

Returns true of false based on whether the theme should show the top selling products. Set on the Design > Theme page of the admin.

{% if theme.show_products_feed %}
  <a href="/products.rss">Subscribe to our feed</a>
{% end %}

theme.show_shipping_and_tax *

Returns true of false based on whether the theme should show shipping and tax amounts on the cart page. Set on the Design > Theme page of the admin.
* DEPRECATED: now always returns true

{% if theme.show_shipping_and_tax %}
  Shipping: {{ cart.shipping.amount | money_with_sign }}
  Tax: {{ cart.tax.amount | money_with_sign }}
{% end %}

theme.show_inventory_bars

Returns true of false based on whether the theme should show inventory bars on the product page. Set on the Design > Theme page of the admin.

{% if theme.show_inventory_bars %}
<ul>
  {% for option in product.options %}
  <li style="width:{{ option.inventory }}%">{{ option.name }}</li>
  {% endfor %}
</ul>
{% endif %}

Contact

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