Skip to main content

Attribute availability

Attribute availability loop lists attribute availabilities (e.g., attribute values).
{loop type="attribute_availability" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
attributeA single or a list of attribute ids.id="2", id="1,4,7"
excludeA single or a list of attribute availability ids to exclude.exclude="456,123"
idA single or a list of attribute availability ids.id="2", id="1,4,7"
langA lang idlang="1"
orderA list of values
Expected values
manualorder="alpha_reverse"
productA product ID. If present, only attribute values that are part of this product's combinations are returnedproduct="279"

Plus the global arguments

Outputs

VariableValue
$ATTRIBUTE_IDthe ID of the attribute this attribute availability belongs
$CHAPOthe attribute availability chapo
$DESCRIPTIONthe attribute availability description
$IDthe attribute availability id
$IS_TRANSLATEDcheck if the product is translated or not
$LOCALEthe locale used for this loop
$POSITIONthe attribute availability position
$POSTSCRIPTUMthe attribute availability postscriptum
$TITLEthe attribute availability title

Plus the global outputs

Order possible values

Arguments

Ascending valueDescending valueSorted fields
alphaalpha_reversetitle
manualmanual_reverse