Import Loop

Import loop lists all defined imports.

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

Important informations :

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

Global arguments

Argument Description

Determine if loop is use in backend context.

default : false

example : backend_context="on"


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

default : false

example : force_return="on"


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)


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

default : 0

example : offset="1"


The page to display.

example : page="2"

Loop arguments

Argument Description

A single or a list of import category ids.

example : category="2", category="1,4"


A single or a list of import ids.

example : id="2", id="1,4,7"


A list of values

Expected values :
  • alpha : alphabetical order on title
  • alpha_reverse : reverse alphabetical order on title
  • id : ID order
  • id_reverse : reverse ID order
  • manual : ascending order position
  • manual_reverse : descending order position
  • ref : Réference order
  • ref_reverse : reverse reference order

default : manual

example : order="alpha"

Thelia >= 2.4

A single or a list of import references.

example : ref="thelia.import.price", id="thelia.import.price,thelia.import.stock"

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 Import
$UPDATE_DATE The last modification date of this Import

Loop outputs

Variable Description
$CATEGORY_ID the import category id
$DESCRIPTION the import description
$HANDLE_CLASS The fully qualified name of the class which implements this import
$ID the import id
$POSITION the import position in the containing category
$REF >= 2.4 The import reference, as defined in a config.xml file
$TITLE The import title
$URL the URL to start this import in the admin import page