Category

a category groups similar products together. for each category you can choose to automatically generate a
category page.

The category template is used to generate the category page. Within the Template the following data is available.

  • group_name
  • content_prefix
  • category.title
  • category.name
  • category.description
  • category.products
  • category.meta_keywords
  • category.meta_description
  • category.meta_2

within the products you have access to

  • product.title
  • product.name
  • product.price
  • product.description
  • product.info
  • product.path
  • product.path
  • product.image
  • product.images

ps. if you wish to use european number format use the following

{{ product.price |replace:'.',',' }}

Category Macro

you can pull in a named category using the category macro ..

{% category myname %}
{{ m_category.title }}
… etc
{% endcategory %}

Product

Within a category you can specify a template for all products within that category. This is used to generate a product page.

Within the product template you have access to the following data

  • group_name
  • content_prefix
  • product ( see above )
  • category.name
  • category.title
  • category.path
  • options

options have the following info

  • name
  • title
  • description
  • multiple ( can user select multiple items? true/false)
  • image
  • items ( the option items that the user can choose )

the option items have the following info

  • name
  • title
  • description
  • price ( the adjusted price)
  • is_checked (true/false should this item be selected as default)
  • image

Product Macro

you can pull in a named product using the product macro ..

{% product myname %}
{{ m_product.title }}
… etc
{% endproduct %}

Options

For a product there might be some options that the client can choose from , for example perhaps the color or the size.

To allow this Options are split into options and choices

these are not available in the template but are usedwhen a visitor orders a product.

Option

  • min quantity : ( 0 or empty means no choice is required )
  • max quantity : ( 0 or empty means unlimited choices )

Choice

  • amount : adjust the cost of the product by this amount
  • percentage?: adjust by using the amount as a percentage rather than just a value.
  • selected : initially set this choice as selected for the user.