Skip to main content

Tax

loop displaying taxes available.
{loop type="tax" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
countrya country idcountry="64"
excludeA single or list of tax ids to excludeexclude="2", exclude="1,4"
exclude_tax_ruleA single or list of tax_rule ids to excludeexclude_tax_rule="2", exclude_tax_rule="1,4"
idA single or list of tax ids.id="2", id="1,4"
tax_ruleA single or list of tax_rule idstax_rule="2", tax_rule="1,4"

Plus the global arguments

Outputs

VariableValue
$DESCRIPTIONTax description
$ESCAPED_TYPEProvides a form-and-javascript-safe version of the type, which is a fully qualified classname, with \
$IDthe tax id
$IS_TRANSLATEDcheck if the tax is translated
$LOCALEThe locale used for this research
$REQUIREMENTSAll requirements for this tax
$TITLETax title
$TYPEThe tax type

Plus the global outputs