Accessory Loop
The accessory loop lists products accessories. As an accessory is itself a product, this loop behaves like a product loop. Therefore you can use all product loop arguments and outputs.
Important informations :
* : argument is required
** : at least one of ** marked argument is required
Loop arguments
Argument | Description |
---|---|
all product loop arguments |
example : order="min_price", max_price="100" |
order |
A list of values
Expected values :
default : accessory example : order="accessory,max_price" |
product * |
A single product id. example : product="2" |
Loop outputs
Variable | Description |
---|---|
$ACCESSORY_ID | The product ID of the accessory |
$ID | The accessory ID |
all product loop outputs, except ID, which is the accessory ID |
I want to display all accessories which are in category 1, order by ascending price, for all products in category 2.