Skip to main content

Attribute

Attribute loop lists attributes.
{loop type="attribute" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
excludeA single or a list of attribute ids to exclude.exclude="456,123"
exclude_templateA single or a list of template ids. Only features NOT attached to these templates will be returned.id="2", id="1,4,7"
idA single or a list of attribute ids.id="2", id="1,4,7"
orderA list of values
Expected values
manualorder="alpha_reverse"
productA single or a list of product ids.id="2", id="1,4,7"
templateA single or a list of template ids. Only features attached to these templates will be returned.id="2", id="1,4,7"

Plus the global arguments

Outputs

| Variable | Value | | :------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | $CHAPO | the attribute chapo | | $DESCRIPTION | the attribute description | | $ID | the attribute id | | $IS_TRANSLATED | check if the product is translated or not | | $LOCALE | the locale used for this loop | | $POSITION | If none of the product, template or exclude_template parameter is present, $POSITION contains the attribute position. Otherwise, it contains the attribute position in the product template context. | | $POSTSCRIPTUM | the attribute postscriptum | | $TITLE | the attribute title |

Plus the global outputs

Order possible values

Arguments

Ascending valueDescending valueSorted fields
alphaalpha_reversetitle
idid_reverseid
manualmanual_reverseposition