init_products
Tag {init_products} displayes the list of the product under the selected product category. If no categories are selected, all products will be displayed.
Parameters
- name - variable name where the returned data is saved. Default value is "products".
- formname - name of the form which contains the products. For ordering to work you must define the form name in which the productlist is in. If the correct formname is not defined the add2cart_url and delete_url tags will not work. Available only with e-commerce module.
- cart - defines the ID of the shopping cart where the products on the list belong. Available only with e-commerce module.
- parent - defines parent object's ID of the product list
- category_id - defines the category from where the product list will be displayed
- manufacturer_id - defines the manufacturer whose products will be displayed
- language_id - defines the language of the product information
- order - defines the order of the product list. Possible values: product_category_description.name, product_manufacturer.name, product_description.name,
product_description.description, product.id, product.model, product.price - start - defines the starting row of the product list
- limit - defines the limit of the rows in the product list. You must use this parameter always with "start" parameter.
NB! Default value is 20. - where - Can be used in filtering or searching the product list. Examples: where="product.price>'0'" or where="product.model = 'tv-set'" or where="product_description.name = 'Sanyo'"
- pagenum_separator - the character that separates the page number in the paging list
- pagenum_next_chr - the character (string) for the link to the next product list's page
- pagenum_prev_chr - the character (string) for the link to the previous product list's page
- pagenum_link_class - the CSS-class for the links in the paging list
- pagenum_numbers_style - the CSS-class for the numbers in the paging list
Attributes
- buttons - displayes the action buttons for the editors
- thumbnail - displayes the thumbnail of the product picture
- category - prints the category of the product
- category_id - prints the ID number of the protduct's category
- manufacturer - prints the manufacturer of the product
- manufacturer_id - prints the ID number of the product's manufacturer
- model - prints the model of the product
- description - prints the description of the product
- price - prints the price of the product
- add2cart_url - This is the href which takes you to the "The product has been added to your shopping cart page". (This also adds the product to the cart) . Available only with e-commerce module.
- delete_url - This is the href which deletes the product from the shopping cart. Available only with e-commerce module.
- amount_boxname - If you wish to specify an amount of products to add to the shoppingcart, this is the name of the <input type= "text"> field. Available only with e-commerce module.
- amount - This is the amount of a product in a shoppingcart. Available only with e-commerce module.
- sum - prins the sum of a product i.e. price * amount . Available only with e-commerce module.
- price_f - Prints the formated price. Available only with e-commerce module.
General tags
- <name>_newbutton - prints "N-button" to create new product
- <name>_count - total number of products in current list, dependent on the the limit parameter.
- <name>_rows- total number of the products, independent from the limit parameter.
- <name>_pages - prints the paging links
- <name>_pagenumbers - prints the paging links
- <name>_previous - prints the link to the previous product page
- <name>_next - prints the link to the next product page
- <name>_total - Total sum of all products in a shopping cart
RSS