Associated content Loop

Associated content loop lists associated contents of a product or a category. It behaves like a content loop therefore you might use all content loop arguments and outputs.

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

Important informations :

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

Loop arguments

Argument Description
all content loop arguments

example : exclude_folder="1,2,9"

category **

A single category id.

example : category="5"

exclude_category

A single or a list of category ids. If a content is in multiple categories which are not all excluded it will not be excluded.

example : exclude_category="5"

exclude_product

A single or a list of product ids. If a content is in multiple products which are not all excluded it will not be excluded.

example : exclude_product="5"

order

A list of values

Expected values :
  • all content loop orders
  • associated_content : manual associated content order
  • associated_content_reverse : reverse manual associated content order

default : associated_content

example : order="associated_content"

product **

A single product id.

example : product="2"

Loop outputs

Variable Description
$CONTENT_ID the associated content id
all content loop outputs, except for $ID, which is the ID of the relation.