Feature value Loop

Feature value loop lists feature availabilities.

{loop type="feature_value" name="the-loop-name" [argument="value"], [...]}

Important informations :

* : argument is required
** : at least one of ** marked argument is required

Global arguments

Argument Description
backend_context

Determine if loop is use in backend context.

default : false

example : backend_context="on"

force_return

force return result for i18n tables even if there is no record

default : false

example : force_return="on"

limit

The maximum number of results to display.

example : limit="10"

name *

The loop name. This name must be unique and is used to reference this loop further in the page (see ifloop, elseloop or pageloop)

offset

The first product to display offset. Will not be used if `page` argument is set.

default : 0

example : offset="1"

page

The page to display.

example : page="2"

Loop arguments

Argument Description
exclude_feature_availability

A boolean value to return only features with feature availability (no personal value).

example : feature_availability="true"

exclude_free_text

A boolean value to return only features with free text value (no feature availability).

example : exclude_free_text="1" or exclude_free_text="true"

feature *

A single feature id.

example : feature="2"

feature_availability

A single or a list of feature availability ids.

example : feature_availability="2,5"

free_text

A single or a list of strings. (2.2)

example : free_text="some text,some other text"

order

A list of values

Expected values :
  • alpha : alphabetical order on title
  • alpha_reverse : reverse alphabetical order on title
  • manual
  • manual_reverse

default : manual

example : order="alpha_reverse"

product

A single product id. (no longer mandatory since 2.2)

example : product="9"

Global outputs

Variable Description
$LOOP_COUNT the current results index, starting from 1
$LOOP_TOTAL the total number of results returned by the loop
$CREATE_DATE The creation date of this Feature_value
$UPDATE_DATE The last modification date of this Feature_value

Loop outputs

Variable Description
$CHAPO the feature availability chapo
$DESCRIPTION the feature availability description
$FEATURE_AV_ID the feature av. ID. Null if the feature ha no feature av. Use FREE_TEXT_VALUE in this case.
$FREE_TEXT_VALUE the free text value. Null if the feature has feature availability.
$ID the feature value id
$IS_FEATURE_AV 1 if this feature is feature av., 0 otherwise.
$IS_FREE_TEXT 1 if this feature is free text, 0 otrherwise.
$LOCALE the locale of returned results
$POSITION the feature value position
$POSTSCRIPTUM the feature availability postscriptum
$PRODUCT the id of the product. Deprecated, please use $PRODUCT_ID instead
$PRODUCT_ID (2.2) the id of the product
$TITLE the feature availability title