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"
langA lang idlang="1"
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

VariableValue
$CHAPOthe attribute chapo
$DESCRIPTIONthe attribute description
$IDthe attribute id
$IS_TRANSLATEDcheck if the product is translated or not
$POSITIONIf 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.
$POSTSCRIPTUMthe attribute postscriptum
$TITLEthe attribute title

Plus the global outputs

Order possible values

Arguments

Ascending valueDescending valueSorted fields
alphaalpha_reversetitle
manualmanual_reverse