Help

Frequently asked questions and other useful tidbits.

Special Filters

Updated on June 29th, 2009

paginate(products, id, class_name, prev_label, next_label, inner_window, outer_window, separator)

Creates pagination (1 2 3 … 5) for the given products.current variable. To be used on the Products page.

Options

  • id (”pagination” by default)
  • class_name (”pagination” by default)
  • prev_label (”« Previous” by default)
  • next_label (”Next »” by default)
  • inner_window (4 by default)
  • outer_window (1 by default)
  • separator (” ” by default).

{{ products.current | paginate }}

shipping_name(area, everywhere, everywhere_else)

Returns the name of a shipping area. If the shipping area is a for a country, it will use the country’s name. Otherwise it will use everywhere if it’s the only shipping option, and everywhere_else if there are multiple shipping areas.

Options

  • everywhere (”Everywhere” by default)
  • everywhere_else (”Everyone else” by default)

{% for area in product.shipping %}
  <p>{{ area | shipping_name }}</p>
{% endfor %}

hidden_option_input(option, id, class_name)

Returns a hidden form input for the given option to be added to the cart. Useful for when there is only one default option.

Options

  • id (”option” by default)
  • class_name (blank by default)

{% if product.has_default_option %}
  {{ product.option | hidden_option_input }}
{% endif %}

options_select(options, id, class_name)

Returns a select combobox for the given options to be added to the cart.

Options

  • id (”option” by default)
  • class_name (blank by default)

{{ product.options_in_stock | options_select }}

options_radio(options, id, class_name)

Returns an unordered list of radio buttons for the given options to be added to the cart.

Options

  • id (”option” by default)
  • class_name (blank by default)

{{ product.options_in_stock | options_radio }}

product_quantity_input(product, quantity, id, class_name)

Returns a text input for the given product to specify what quantity to add to the cart.

Options

  • quantity (1 by default)
  • id (”quantity_product.id” by default)
  • class_name (blank by default)

Quantity: {{ product | product_quantity_input }}

item_quantity_input(options, id, class_name)

Returns a text input for the given option to update it’s quantity on the Cart page.

Options

  • id (”item_item.id_qty” by default)
  • class_name (blank by default)

Quantity: {{ item | item_quantity_input }}

country_select(country, label, id, class_name)

Returns a select combobox of all countries with the given country selected. To be used on the Cart page.

Options

  • label (”Select your country…” by default)
  • id (”country” by default)
  • class_name (blank by default)

Shipping: {{ store.country | country_select }}

discount_code_input(discount, id, class_name)

Returns a text input for the cart’s discount. To be used on the Cart page.

Options

  • id (”cart_discount_code” by default)
  • class_name (blank by default)

Discount: {{ cart.discount | discount_code_input }}

contact_input(contact, field, id, class_name)

Returns a text input for the given contact field. To be used on the Contact page.

Options

  • field (”name”, “email”, “subject”, “message”, or “captcha”)
  • id (matches field by default)
  • class_name (blank by default)

Name: {{ contact | contact_input: 'name' }}<br/>
Email: {{ contact | contact_input: 'email' }}<br/>
Subject: {{ contact | contact_input: 'subject' }}<br/>
Message: {{ contact | contact_input: 'message' }}<br/>
Spam Check: {{ contact.captcha }}<br/>
Enter the letters from the above image:
{{ contact | contact_input: 'captcha' }}

Contact

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