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
{{ 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
{% 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
{% 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
{{ 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
{{ 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: {{ 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
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
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
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
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.